{"id":869319,"student_id":10,"content":"from game import *\n\ntimer = -1 # 計數器數到 0 時移動\n\nplayer = create_sprite('koding.png')\n\ndef onclick():\n global timer\n timer = 30 # 設定倒數 30 約 0.5 秒\n \n# 遊戲迴圈每秒執行約 60 次\ndef loop():\n global timer\n timer -= 1\n if timer == 0: player.x -= 100\n \n draw_text(timer) #印在畫面上觀察數字\n \n\non('click', onclick)\nforever(loop)","created_at":"2024-10-23T16:46:02.901+08:00","updated_at":"2024-10-23T16:50:53.015+08:00","name":"點擊畫面延遲 0.5 秒移動","language":"python","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/869319/346d882c25c95cc7aafba8342f9e122e.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":11,"hashid":"d5ms93dqn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":19022686,"file_name":"cloud.png","project_id":869319,"asset_id":302343,"created_at":"2024-10-23T16:46:02.907+08:00","updated_at":"2024-10-23T16:46:02.907+08:00"},{"id":19022687,"file_name":"bg.jpg","project_id":869319,"asset_id":302344,"created_at":"2024-10-23T16:46:02.908+08:00","updated_at":"2024-10-23T16:46:02.908+08:00"},{"id":19022688,"file_name":"calm.mp3","project_id":869319,"asset_id":302345,"created_at":"2024-10-23T16:46:02.909+08:00","updated_at":"2024-10-23T16:46:02.909+08:00"},{"id":19022689,"file_name":"koding.png","project_id":869319,"asset_id":302346,"created_at":"2024-10-23T16:46:02.910+08:00","updated_at":"2024-10-23T16:46:02.910+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦