{"id":885168,"student_id":1444,"content":"from game import *\nfrom random import random\n\napple = create_sprite('apple.png') #蘋果\nsign = create_sprite('sign.png') #準星\n\nclock = 3600\n\ndef loop():\n global clock\n sign.move_to(cursor) #準星跟著滑鼠移動\n draw_text('時間: ' + str(clock // 60), 10, 10, 'black', 30)\n # draw_text('點擊: ' + str(count), 10, 50, 'black', 30)\n if count \u003e 0: clock -= 1\n if clock \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-11-15T20:36:52.547+08:00","updated_at":"2024-11-15T20:36:52.547+08:00","name":"6_延伸_APM 手速測試_預設版 副本","language":"python","screenshot":{"url":null},"parent_id":829933,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":10,"hashid":"gk4s82rne","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":34450833,"file_name":"sign.png","project_id":885168,"asset_id":771375,"created_at":"2024-11-15T20:36:52.553+08:00","updated_at":"2024-11-15T20:36:52.553+08:00"},{"id":34450834,"file_name":"apple.png","project_id":885168,"asset_id":771376,"created_at":"2024-11-15T20:36:52.554+08:00","updated_at":"2024-11-15T20:36:52.554+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦