{"id":452338,"student_id":10,"content":"# 完整解答\n\n\nfrom game import create_sprite, forever, set_backdrop\nset_backdrop('bg.png') #設定背景\ntarget = create_sprite('t_0.png', 't_1.png')\ntarget.x = 1100\ntarget.y = 300\nball = create_sprite('ball.png')\nball.x = 100\nball.y = 600\n\nvx = 10\nvy = -13\n\ndef gameloop():\n global vy\n ball.x = ball.x + vx\n ball.y = ball.y + vy\n vy = vy + 0.2\n if ball.touched(target):\n target.costume_id = 1\n\nforever(gameloop)\n","created_at":"2022-10-24T18:40:07.024+08:00","updated_at":"2022-10-24T18:43:18.027+08:00","name":"投籃_模擬引力_預設 副本","language":"python","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/452338/9deb3fd8f20a91703e3a103a50c067a7.jpg"},"parent_id":452331,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":128,"hashid":"vngs59zqe","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":10243293,"file_name":"ball.png","project_id":452338,"asset_id":576576,"created_at":"2022-10-24T18:40:07.030+08:00","updated_at":"2022-10-24T18:40:07.030+08:00"},{"id":10243294,"file_name":"t_0.png","project_id":452338,"asset_id":576577,"created_at":"2022-10-24T18:40:07.032+08:00","updated_at":"2022-10-24T18:40:07.032+08:00"},{"id":10243295,"file_name":"t_1.png","project_id":452338,"asset_id":576578,"created_at":"2022-10-24T18:40:07.033+08:00","updated_at":"2022-10-24T18:40:07.033+08:00"},{"id":10243296,"file_name":"bg.png","project_id":452338,"asset_id":576579,"created_at":"2022-10-24T18:40:07.034+08:00","updated_at":"2022-10-24T18:40:07.034+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦