{"id":202850,"student_id":10,"content":"setBackdrop(\"border.jpg\")\nend = createSprite(\"e.png\")\nroad = createSprite(\"road.png\")\ncar1 = createSprite(\"car_red.png\")\ncar2 = createSprite(\"car_blue.png\")\n\nend.direction = 0\nend.y = 40\nend.x = 450\ncar1.direction = 270\ncar1.y = 20\ncar1.x = 340\ncar2.direction = 270\ncar2.y = 50\ncar2.x = 340\n\ndef loop ():\n if key.right:\n car1.direction += 4\n \n if key.left:\n car1.direction -= 4\n \n if car1.touched(road):\n car1.stepForward(0.3)\n else:\n car1.stepForward(2.5)\n \n if key.d:\n car2.direction += 4\n \n if key.a:\n car2.direction -= 4\n \n if car2.touched(road):\n car2.stepForward(.3)\n else:\n car2.stepForward(2.5)\n \n if car2.touched(end) and car1.touched(end):\n stop()\n \nforever(loop)","created_at":"2020-11-09T15:09:19.733+08:00","updated_at":"2020-11-09T15:22:06.852+08:00","name":"迷你賽車Python v2","language":"python","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/202850/fd1ac05835b665cf0d7e3c5532c7c2d7.jpg"},"parent_id":138304,"plugin":"game.set({'width': 640, 'height': 480})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":211,"hashid":"jzmsey2qp","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3503389,"file_name":"e.png","project_id":202850,"asset_id":24111,"created_at":"2020-11-09T15:09:19.739+08:00","updated_at":"2020-11-09T15:09:19.739+08:00"},{"id":3503390,"file_name":"road.png","project_id":202850,"asset_id":23940,"created_at":"2020-11-09T15:09:19.741+08:00","updated_at":"2020-11-09T15:09:19.741+08:00"},{"id":3503391,"file_name":"car_yellow.png","project_id":202850,"asset_id":24109,"created_at":"2020-11-09T15:09:19.742+08:00","updated_at":"2020-11-09T15:09:19.742+08:00"},{"id":3503392,"file_name":"car_red.png","project_id":202850,"asset_id":24108,"created_at":"2020-11-09T15:09:19.743+08:00","updated_at":"2020-11-09T15:09:19.743+08:00"},{"id":3503393,"file_name":"car_blue.png","project_id":202850,"asset_id":24110,"created_at":"2020-11-09T15:09:19.745+08:00","updated_at":"2020-11-09T15:09:19.745+08:00"},{"id":3503394,"file_name":"car_black.png","project_id":202850,"asset_id":24107,"created_at":"2020-11-09T15:09:19.746+08:00","updated_at":"2020-11-09T15:09:19.746+08:00"},{"id":3503395,"file_name":"border.jpg","project_id":202850,"asset_id":24106,"created_at":"2020-11-09T15:09:19.751+08:00","updated_at":"2020-11-09T15:09:19.751+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦