{"id":193778,"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":"2020-09-23T10:58:46.288+08:00","updated_at":"2020-09-23T11:08:34.048+08:00","name":"小恐龍大爆走(預設版)","language":"python","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/193778/de3f860b8e41a539fb786875970b8ad0.jpg"},"parent_id":193671,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":262,"hashid":"vngs3ej8","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3315245,"file_name":"1.png","project_id":193778,"asset_id":265662,"created_at":"2020-09-23T10:58:46.295+08:00","updated_at":"2020-09-23T10:58:46.295+08:00"},{"id":3315246,"file_name":"ground.png","project_id":193778,"asset_id":264582,"created_at":"2020-09-23T10:58:46.297+08:00","updated_at":"2020-09-23T10:58:46.297+08:00"},{"id":3315247,"file_name":"sky_light.png","project_id":193778,"asset_id":265661,"created_at":"2020-09-23T10:58:46.298+08:00","updated_at":"2020-09-23T10:58:46.298+08:00"},{"id":3315248,"file_name":"bg.png","project_id":193778,"asset_id":265661,"created_at":"2020-09-23T10:58:46.299+08:00","updated_at":"2020-09-23T10:58:46.299+08:00"},{"id":3315249,"file_name":"hint.png","project_id":193778,"asset_id":264897,"created_at":"2020-09-23T10:58:46.300+08:00","updated_at":"2020-09-23T10:58:46.300+08:00"},{"id":3315250,"file_name":"dino_1.png","project_id":193778,"asset_id":264892,"created_at":"2020-09-23T10:58:46.301+08:00","updated_at":"2020-09-23T10:58:46.301+08:00"},{"id":3315251,"file_name":"dino_0.png","project_id":193778,"asset_id":264891,"created_at":"2020-09-23T10:58:46.302+08:00","updated_at":"2020-09-23T10:58:46.302+08:00"},{"id":3315252,"file_name":"board.png","project_id":193778,"asset_id":264890,"created_at":"2020-09-23T10:58:46.303+08:00","updated_at":"2020-09-23T10:58:46.303+08:00"},{"id":3315253,"file_name":"sky_dark.png","project_id":193778,"asset_id":264888,"created_at":"2020-09-23T10:58:46.304+08:00","updated_at":"2020-09-23T10:58:46.304+08:00"},{"id":3315254,"file_name":"4.png","project_id":193778,"asset_id":264887,"created_at":"2020-09-23T10:58:46.305+08:00","updated_at":"2020-09-23T10:58:46.305+08:00"},{"id":3315255,"file_name":"3.png","project_id":193778,"asset_id":264886,"created_at":"2020-09-23T10:58:46.306+08:00","updated_at":"2020-09-23T10:58:46.306+08:00"},{"id":3315256,"file_name":"2.png","project_id":193778,"asset_id":264885,"created_at":"2020-09-23T10:58:46.307+08:00","updated_at":"2020-09-23T10:58:46.307+08:00"},{"id":3315257,"file_name":"0.png","project_id":193778,"asset_id":264883,"created_at":"2020-09-23T10:58:46.308+08:00","updated_at":"2020-09-23T10:58:46.308+08:00"},{"id":3315258,"file_name":"bgm.mp3","project_id":193778,"asset_id":202056,"created_at":"2020-09-23T10:58:46.308+08:00","updated_at":"2020-09-23T10:58:46.308+08:00"},{"id":3315259,"file_name":"milestone.mp3","project_id":193778,"asset_id":202055,"created_at":"2020-09-23T10:58:46.310+08:00","updated_at":"2020-09-23T10:58:46.310+08:00"},{"id":3315260,"file_name":"jump.ogg","project_id":193778,"asset_id":172839,"created_at":"2020-09-23T10:58:46.311+08:00","updated_at":"2020-09-23T10:58:46.311+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦