{"id":345164,"student_id":10,"content":"import game #載入遊戲套件\nimport random #載入隨機數套件\n\nground = game.create_sprite('ground.png') #道路街景\ndino = game.create_sprite('dino_0.png', 'dino_1.png') #恐龍\nb1 = game.create_sprite('0.png') #1號障礙物\nb2 = game.create_sprite('0.png') #2號障礙物\nb3 = game.create_sprite('0.png') #3號障礙物\nboard = game.create_sprite('board.png') #計分版\n\ndino.y = 600\nb1.y = 600\nb2.y = 600\nb3.y = 600\n\ndino.x = 300\nb1.x = 600\nb2.x = 900\nb3.x = 1200\n\nvy = 0 #垂直速度\nvx = 10 #水平速度\nscore = 0 #分數\n\n#遊戲主迴圈\ndef loop():\n global vx, vy, score #存取函式外變數\n \n\n\ngame.forever(loop) #重複不斷執行","created_at":"2022-02-14T18:42:41.760+08:00","updated_at":"2022-02-14T18:42:41.760+08:00","name":"小恐龍大爆走(預設版). 副本","language":"python","screenshot":{"url":null},"parent_id":345141,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":153,"hashid":"882sqgekv","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7431573,"file_name":"1.png","project_id":345164,"asset_id":475025,"created_at":"2022-02-14T18:42:41.765+08:00","updated_at":"2022-02-14T18:42:41.765+08:00"},{"id":7431574,"file_name":"ground.png","project_id":345164,"asset_id":475024,"created_at":"2022-02-14T18:42:41.766+08:00","updated_at":"2022-02-14T18:42:41.766+08:00"},{"id":7431575,"file_name":"sky_light.png","project_id":345164,"asset_id":475023,"created_at":"2022-02-14T18:42:41.767+08:00","updated_at":"2022-02-14T18:42:41.767+08:00"},{"id":7431576,"file_name":"bg.png","project_id":345164,"asset_id":475022,"created_at":"2022-02-14T18:42:41.768+08:00","updated_at":"2022-02-14T18:42:41.768+08:00"},{"id":7431577,"file_name":"hint.png","project_id":345164,"asset_id":475021,"created_at":"2022-02-14T18:42:41.769+08:00","updated_at":"2022-02-14T18:42:41.769+08:00"},{"id":7431578,"file_name":"dino_1.png","project_id":345164,"asset_id":475020,"created_at":"2022-02-14T18:42:41.770+08:00","updated_at":"2022-02-14T18:42:41.770+08:00"},{"id":7431579,"file_name":"dino_0.png","project_id":345164,"asset_id":475019,"created_at":"2022-02-14T18:42:41.770+08:00","updated_at":"2022-02-14T18:42:41.770+08:00"},{"id":7431580,"file_name":"board.png","project_id":345164,"asset_id":475018,"created_at":"2022-02-14T18:42:41.771+08:00","updated_at":"2022-02-14T18:42:41.771+08:00"},{"id":7431581,"file_name":"sky_dark.png","project_id":345164,"asset_id":475017,"created_at":"2022-02-14T18:42:41.772+08:00","updated_at":"2022-02-14T18:42:41.772+08:00"},{"id":7431582,"file_name":"4.png","project_id":345164,"asset_id":475016,"created_at":"2022-02-14T18:42:41.773+08:00","updated_at":"2022-02-14T18:42:41.773+08:00"},{"id":7431583,"file_name":"3.png","project_id":345164,"asset_id":475015,"created_at":"2022-02-14T18:42:41.774+08:00","updated_at":"2022-02-14T18:42:41.774+08:00"},{"id":7431584,"file_name":"2.png","project_id":345164,"asset_id":475014,"created_at":"2022-02-14T18:42:41.774+08:00","updated_at":"2022-02-14T18:42:41.774+08:00"},{"id":7431585,"file_name":"0.png","project_id":345164,"asset_id":475013,"created_at":"2022-02-14T18:42:41.775+08:00","updated_at":"2022-02-14T18:42:41.775+08:00"},{"id":7431586,"file_name":"bgm.mp3","project_id":345164,"asset_id":475012,"created_at":"2022-02-14T18:42:41.776+08:00","updated_at":"2022-02-14T18:42:41.776+08:00"},{"id":7431587,"file_name":"milestone.mp3","project_id":345164,"asset_id":475011,"created_at":"2022-02-14T18:42:41.777+08:00","updated_at":"2022-02-14T18:42:41.777+08:00"},{"id":7431588,"file_name":"jump.ogg","project_id":345164,"asset_id":475010,"created_at":"2022-02-14T18:42:41.778+08:00","updated_at":"2022-02-14T18:42:41.778+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦