{"id":824540,"student_id":10,"content":"from game import *\nfrom random import random\n\napple = create_sprite('apple.png') #蘋果\nsign = create_sprite('sign.png') #準星\n\ntimer = 3600\n\ndef loop():\n global timer\n sign.move_to(cursor) #準星跟著滑鼠移動\n draw_text('時間: ' + str(timer // 60), 10, 10, 'black', 30)\n # draw_text('點擊: ' + str(count), 10, 50, 'black', 30)\n if count \u003e 0: timer -= 1\n if timer \u003c= 0: stop() #時間到結束遊戲\n\ndef onclick():\n apple.x = 100 + random() * 1000 #隨機水平位置\n apple.y = 100 + random() * 700 #隨機垂直位置\n\napple.on('click', onclick) #點擊畫面執行 onclick\nforever(loop) #不斷執行遊戲迴圈","created_at":"2024-08-21T18:57:22.736+08:00","updated_at":"2024-08-22T15:27:45.444+08:00","name":"延伸內容_APM 手速測試_預設版","language":"python","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/824540/c84790ddd425e004a5f4666377f74df7.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":71,"hashid":"5j3s8vnwy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":18166321,"file_name":"sign.png","project_id":824540,"asset_id":769111,"created_at":"2024-08-22T15:24:47.782+08:00","updated_at":"2024-08-22T15:24:47.782+08:00"},{"id":18166282,"file_name":"apple.png","project_id":824540,"asset_id":769108,"created_at":"2024-08-22T15:15:57.502+08:00","updated_at":"2024-08-22T15:15:57.502+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦