{"id":884688,"student_id":1443,"content":"from game import *\nfrom random import random\n\napple = create_sprite('apple.png') #蘋果\nsign = create_sprite('sign.png') #準星\n\ntimer = 3600\ncount = 0\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 global count\n count +=1\n apple.x = 100 + random() * 1000 #隨機水平位置\n apple.y = 100 + random() * 700 #隨機垂直位置\n\napple.on('click', onclick) #點擊畫面執行 onclick\nforever(loop) #不斷執行遊戲迴圈","created_at":"2024-11-13T22:52:58.643+08:00","updated_at":"2024-11-13T22:57:16.604+08:00","name":"6_延伸_APM 手速測試_預設版 副本","language":"python","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/884688/422fa9dfba4e1572d0c8994e2e8b5802.jpg"},"parent_id":829933,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":46,"hashid":"yeys433qz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":34439478,"file_name":"sign.png","project_id":884688,"asset_id":771375,"created_at":"2024-11-13T22:52:58.647+08:00","updated_at":"2024-11-13T22:52:58.647+08:00"},{"id":34439479,"file_name":"apple.png","project_id":884688,"asset_id":771376,"created_at":"2024-11-13T22:52:58.649+08:00","updated_at":"2024-11-13T22:52:58.649+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
繁中
简中
English
日本語
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦