{"id":449611,"student_id":10,"content":"from game import create_sprite, forever, key\nfrom random import randrange\n\nbg = create_sprite('bg.png') #驚呆圖\ncount = 0 #搖晃次數\nbg.scale = 1.1\n\n# 遊戲主迴圈\ndef gameloop():\n global count\n \n if count \u003e 0:\n bg.x = 600 + randrange(-5, 5)\n bg.y = 450 + randrange(-5, 5)\n count = count - 1\n \n if key.space: #按下空白按鍵\n count = 60 #搖晃次數設定為 100 次\n\nforever(gameloop) #不斷執行遊戲迴圈","created_at":"2022-10-19T12:34:59.065+08:00","updated_at":"2022-10-20T18:38:28.162+08:00","name":"叩叮驚呆了","language":"python","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/449611/e2dea3b2063117dbfa6bffa92f8d8189.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":121,"hashid":"vngs5988y","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":10168628,"file_name":"bg.png","project_id":449611,"asset_id":574318,"created_at":"2022-10-19T12:35:13.360+08:00","updated_at":"2022-10-19T12:35:13.360+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦