{"id":202858,"student_id":10,"content":"from game import *\nfrom random import randrange\nfrom time import time\n\nstart_time = time() + randrange(5, 10)\n\ndef loop():\n pass_time = time() - start_time\n \n if pass_time \u003c 0:\n set_backdrop('#d12b2b') #red\n text = 'Wait for green'\n \n if pass_time \u003e= 0:\n set_backdrop('#3cd12b') #green\n text = 'Click!'\n \n if cursor.is_down:\n set_backdrop('#2b87d1') #blue\n if pass_time \u003e= 0:\n text = str(int(pass_time*1000)) + ' ms'\n else:\n text = 'Too soon!'\n stop()\n \n draw_text(text, 200, 200, 'white', 120)\n\nforever(loop)","created_at":"2020-11-09T17:16:53.396+08:00","updated_at":"2022-01-25T12:22:24.784+08:00","name":"反應遊戲(預設版)","language":"python","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/202858/4d7fe1ab019610f2eb5c1aba9083e8b1.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":217,"hashid":"yeysvz6e8","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3503570,"file_name":"0.png","project_id":202858,"asset_id":280220,"created_at":"2020-11-09T17:17:23.715+08:00","updated_at":"2020-11-09T17:17:23.715+08:00"},{"id":3503571,"file_name":"1.png","project_id":202858,"asset_id":280221,"created_at":"2020-11-09T17:17:23.716+08:00","updated_at":"2020-11-09T17:17:23.716+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦