{"id":869320,"student_id":10,"content":"from game import *\nimport time\n\ntimer = -1\nmove = False\n\nplayer = create_sprite('koding.png')\n\ndef onclick():\n global timer, move\n timer = 30 # 設定倒數 30 約 0.5 秒\n \n# 遊戲迴圈每秒執行約 60 次\ndef loop():\n global timer\n timer -= time.time() + 0.5\n if timer == 0: player.x -= 100\n \n draw_text(timer) #印在畫面上觀察數字\n \n\non('click', onclick)\nforever(loop)","created_at":"2024-10-23T17:04:15.591+08:00","updated_at":"2024-10-23T17:06:06.895+08:00","name":"點擊畫面延遲 0.5 秒移動 副本","language":"python","screenshot":{"url":null},"parent_id":869319,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":11,"hashid":"npmswqpew","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":19022690,"file_name":"cloud.png","project_id":869320,"asset_id":302343,"created_at":"2024-10-23T17:04:15.597+08:00","updated_at":"2024-10-23T17:04:15.597+08:00"},{"id":19022691,"file_name":"bg.jpg","project_id":869320,"asset_id":302344,"created_at":"2024-10-23T17:04:15.598+08:00","updated_at":"2024-10-23T17:04:15.598+08:00"},{"id":19022692,"file_name":"calm.mp3","project_id":869320,"asset_id":302345,"created_at":"2024-10-23T17:04:15.599+08:00","updated_at":"2024-10-23T17:04:15.599+08:00"},{"id":19022693,"file_name":"koding.png","project_id":869320,"asset_id":302346,"created_at":"2024-10-23T17:04:15.600+08:00","updated_at":"2024-10-23T17:04:15.600+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦