{"id":194717,"student_id":10,"content":"import game\n\nroad = game.create_sprite('road.jpg')\nplayer = game.create_sprite('dino_0.png', 'dino_1.png')\n\nroad.x += 2000\n\nvx = 0\nvy = 0\n\ndef loop ():\n global vy, vx\n \n if vx \u003e 0:\n road.x -= vx\n vx -= 0.01\n\n if road.x \u003c 600 and player.y \u003e= 450:\n game.draw_text(450 - road.x)\n game.stop()\n \n player.costume_id = int(road.x / 100) % 2\n\ndef speedup ():\n global vx\n if vx \u003c= 0:\n vx = 3\n else:\n vx += 0.5\n \n\ngame.forever(loop)\ngame.on('keyup', 'right', speedup)\n","created_at":"2020-10-13T10:39:48.105+08:00","updated_at":"2020-10-13T10:48:30.809+08:00","name":"運動會系列 - 百米競賽","language":"python","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/194717/0753c69c3128c386f6c02a1c0d1f4019.jpg"},"parent_id":194702,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":216,"hashid":"p93skddve","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3334593,"file_name":"dino_0.png","project_id":194717,"asset_id":264891,"created_at":"2020-10-13T10:39:48.116+08:00","updated_at":"2020-10-13T10:39:48.116+08:00"},{"id":3334594,"file_name":"dino_1.png","project_id":194717,"asset_id":264892,"created_at":"2020-10-13T10:39:48.119+08:00","updated_at":"2020-10-13T10:39:48.119+08:00"},{"id":3334595,"file_name":"road.jpg","project_id":194717,"asset_id":268352,"created_at":"2020-10-13T10:39:48.120+08:00","updated_at":"2020-10-13T10:39:48.120+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦