{"id":182987,"student_id":10,"content":"\n\n\nplatform.y = 450;\nplatform.x = 500;\nrocket.y = 50;\nrocket.x = 50;\n\nvar vx = 0;\nvar vy = 0;\nvar fuel = 500;\n\nforever(function() {\n if(rocket.touched(platform)) {\n if(vy \u003e 0.8 || vx \u003e 0.6 || vx \u003c -0.6) {\n \trocket.costumeId = 1;\n }\n stop();\n }\n if(fuel \u003e 0) {\n if(key.up) {\n vy -= 0.1;\n fuel -= 1;\n }\n if(key.left) {\n vx -= 0.1;\n fuel -= 1;\n }\n if(Game.key.right) {\n vx += 0.1;\n fuel -= 1;\n }\n }\n vy += 0.06;\n rocket.y += vy;\n rocket.x += vx;\n rocket.direction = vx * 10;\n print('fuel: ' + fuel, 10, 10, 'red', 20);\n});\n\n\n\n","created_at":"2020-08-19T15:22:36.786+08:00","updated_at":"2021-04-06T19:21:12.051+08:00","name":"火箭降落(DT試玩版) 副本","language":"javascript","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/182987/a847d2bded9ccd694df199a9a4ae3c00.jpg"},"parent_id":73444,"plugin":"setBackdrop('bg.jpg');\n\nvar platform = createSprite(\"platform.png\");\nvar rocket = createSprite([\"rocket.png\",\"bomb.png\"]);\nvar fire = createSprite(\"fire.png\");\nfire.scale = 0.7;\n\nforever(function() {\n\tfire.x = rocket.x;\n fire.y = rocket.y;\n fire.direction = rocket.direction - 180;\n fire.stepForward(65);\n fire.direction = rocket.direction;\n if((key.up || key.left || key.right) \u0026\u0026 fuel\u003e0) {\n \tfire.hidden = false;\n } else {\n fire.hidden = true;\n }\n if(rocket.touched(platform)) {\n fire.hidden = true;\n }\n});\n\n\nplatform.y = 450;\nplatform.x = 500;\nrocket.y = 50;\nrocket.x = 50;\n\nvar vx = 0;\nvar vy = 0;\nvar fuel = 500;\n\nforever(function() {\n if(rocket.touched(platform)) {\n if(vy \u003e 0.8 || vx \u003e 0.6 || vx \u003c -0.6) {\n \trocket.costumeId = 1;\n }\n stop();\n }\n if(fuel \u003e 0) {\n if(key.up) {\n vy -= 0.1;\n fuel -= 1;\n }\n if(key.left) {\n vx -= 0.1;\n fuel -= 1;\n }\n if(Game.key.right) {\n vx += 0.1;\n fuel -= 1;\n }\n }\n vy += 0.06;\n rocket.y += vy;\n rocket.x += vx;\n rocket.direction = vx * 10;\n print('fuel: ' + fuel, 10, 10, 'red', 20);\n});\n\n\n\n","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":246,"hashid":"npms282v","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3112653,"file_name":"platform.png","project_id":182987,"asset_id":127602,"created_at":"2020-08-19T15:22:36.792+08:00","updated_at":"2020-08-19T15:22:36.792+08:00"},{"id":3112654,"file_name":"fire.png","project_id":182987,"asset_id":127601,"created_at":"2020-08-19T15:22:36.793+08:00","updated_at":"2020-08-19T15:22:36.793+08:00"},{"id":3112655,"file_name":"rocket.png","project_id":182987,"asset_id":127600,"created_at":"2020-08-19T15:22:36.794+08:00","updated_at":"2020-08-19T15:22:36.794+08:00"},{"id":3112656,"file_name":"bomb.png","project_id":182987,"asset_id":127599,"created_at":"2020-08-19T15:22:36.795+08:00","updated_at":"2020-08-19T15:22:36.795+08:00"},{"id":3112657,"file_name":"bg.jpg","project_id":182987,"asset_id":127598,"created_at":"2020-08-19T15:22:36.796+08:00","updated_at":"2020-08-19T15:22:36.796+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦