{"id":212436,"student_id":3760,"content":"import game\nimport random\nimport time\n\nstart_time = time.time() + random.randrange(5, 8)\n\ndef loop():\n pass_time = time.time() - start_time\n \n if pass_time \u003c 0:\n game.set_backdrop('blue')\n text = 'wait'\n \n if pass_time \u003e= 0:\n game.set_backdrop('red')\n text = 'click now!'\n \n if game.cursor.is_down:\n game.set_backdrop('green')\n text = 'score:'\n game.draw_text(pass_time, 300, 400, 'white', 60)\n game.stop()\n \n game.draw_text(text, 300, 300, 'white', 60)\n\ngame.forever(loop)","created_at":"2020-12-15T22:11:50.779+08:00","updated_at":"2020-12-16T03:17:48.049+08:00","name":"常用模組 - time:反應遊戲 範例","language":"python","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/212436/9e2cd791856d841a7e1efbaac26d1e76.jpg"},"parent_id":202858,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":30,"hashid":"d5msvv5jw","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3720613,"file_name":"1.png","project_id":212436,"asset_id":280221,"created_at":"2020-12-15T22:11:50.784+08:00","updated_at":"2020-12-15T22:11:50.784+08:00"},{"id":3720614,"file_name":"0.png","project_id":212436,"asset_id":280220,"created_at":"2020-12-15T22:11:50.785+08:00","updated_at":"2020-12-15T22:11:50.785+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦