{"id":212458,"student_id":3760,"content":"import game\nimport random\nimport time\n\n# cowboy = game.create_sprite('0.png', '1.png')\n\n# start_time = time.time() + random.random()*10 + 5\n\n# def loop():\n# pass_time = time.time() - start_time\n \n# if pass_time \u003e= 0:\n# cowboy.costume_id = 1\n \n# if pass_time \u003e= 0.3:\n# game.set_backdrop('red')\n \n# if game.cursor.is_down:\n# game.draw_text(pass_time, 10, 10, 'black', 30)\n# game.stop()\n \n# game.draw_text(pass_time, 10, 10, 'black', 30)\n\n# game.forever(loop)\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-16T03:15:24.673+08:00","updated_at":"2020-12-16T03:18:26.640+08:00","name":"反應遊戲 副本 副本","language":"python","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/212458/16def3ba1e54b709388f4ebc97049024.jpg"},"parent_id":210498,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":32,"hashid":"npms332n3","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3720803,"file_name":"0.png","project_id":212458,"asset_id":280220,"created_at":"2020-12-16T03:15:24.678+08:00","updated_at":"2020-12-16T03:15:24.678+08:00"},{"id":3720804,"file_name":"1.png","project_id":212458,"asset_id":280221,"created_at":"2020-12-16T03:15:24.679+08:00","updated_at":"2020-12-16T03:15:24.679+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦