{"id":192019,"student_id":12205,"content":"setBackdrop('bg.jpg');\nsound.play('music.mp3'); \nvar fuel = 500000000000000;\nvar platform = createSprite(\"platform.png\");\nvar rocket = createSprite([\"rocket.png\", \"bomb.png\"]);\nvar plane = createSprite([\"01.png\", \"bomb.png\"]);\nvar vy = 0;\nvar vx = 0;\nrocket.x = 50;\nrocket.y = 50;\nplatform.x = 500;\nplatform.y = 450;\nplane.x = 0;\nplane.y = 480;\nrocket.direction = 0;\nforever(function() {\n plane.toward(rocket);\n plane.stepForward(0.5);\n if (fuel \u003e 0) {\n if (key.up) {\n vy -= 0.1;\n fuel -= 1;\n }\n if (key.down) {\n vy += 0.1;\n fuel -= 0.1;\n }\n if (key.left) {\n vx -= 0.1;\n rocket.direction -= 0.50;\n fuel -= 1;\n }\n if (key.right) {\n vx += 0.1;\n rocket.direction += 0.5;\n fuel -= 1;\n }\n }\n if (rocket.touched(platform)) {\n if (vy \u003e 0.8) {\n rocket.costumeId = 1;\n print(\"you lose\", 110, 200, \"red\", 100);\n \n }\n if (rocket.direction \u003e 5) {\n rocket.costumeId = 1;\n print(\"you lose\", 110, 200, \"red\", 100);\n sound.play('ao.mp3'); \n }\n if (rocket.direction \u003c -5) {\n rocket.costumeId = 1;\n print(\"you lose\", 110, 200, \"red\", 100);\n sound.play('ao.mp3'); \n }\n stop();\n }\n if (rocket.touched(plane)) {\n rocket.costumeId = 1;\n plane.costumeId = 1;\n print(\"you lose\", 110, 200, \"red\", 100);\n sound.play('ao.mp3'); \n stop();\n }\n if (rocket.y \u003c 0 || rocket.y \u003e 480 || rocket.x \u003c 0 || rocket.x \u003c 0) {\n rocket.costumeId = 1;\n print(\"you lose\", 110, 200, \"red\", 100);\n sound.play('ao.mp3'); \n stop();\n }\n vy += 0.06;\n rocket.y += vy;\n rocket.x += vx;\n print(\"fuel: \"+fuel, 10, 10, \"red\", 20);\n print(\"vy: \"+vy, 10, 100, \"red\", 20);\n});","created_at":"2020-09-16T19:19:34.865+08:00","updated_at":"2020-09-18T12:51:14.671+08:00","name":"火箭降落 副本","language":"javascript","screenshot":{"url":"/uploads/project/screenshot/192019/f42aac19b00ca36450ed9ba086eaeca4.jpg"},"parent_id":10697,"plugin":"var fire = createSprite(\"fire.png\");\nfire.scale = 0.7;\nforever(function() {\n if(window.rocket \u0026\u0026 window.platform) {\n fire.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(window.rocket \u0026\u0026 (key.up || key.left || key.right) \u0026\u0026 window.fuel\u003e0) {\n fire.hidden = false;\n } else {\n fire.hidden = true;\n }\n if(rocket.touched(platform)) {\n // fire.hidden = true;\n }\n }\n});","description":"上、左、右推進火箭\n在料用盡前成功火箭降落在平台上。","note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":168,"hashid":"vngs3mj2","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3275362,"file_name":"bg.jpg","project_id":192019,"asset_id":19411,"created_at":"2020-09-16T19:19:34.870+08:00","updated_at":"2020-09-16T19:19:34.870+08:00"},{"id":3275363,"file_name":"bomb.png","project_id":192019,"asset_id":19412,"created_at":"2020-09-16T19:19:34.872+08:00","updated_at":"2020-09-16T19:19:34.872+08:00"},{"id":3275364,"file_name":"rocket.png","project_id":192019,"asset_id":19413,"created_at":"2020-09-16T19:19:34.874+08:00","updated_at":"2020-09-16T19:19:34.874+08:00"},{"id":3275365,"file_name":"fire.png","project_id":192019,"asset_id":19414,"created_at":"2020-09-16T19:19:34.875+08:00","updated_at":"2020-09-16T19:19:34.875+08:00"},{"id":3275366,"file_name":"platform.png","project_id":192019,"asset_id":19415,"created_at":"2020-09-16T19:19:34.876+08:00","updated_at":"2020-09-16T19:19:34.876+08:00"},{"id":3275556,"file_name":"01.png","project_id":192019,"asset_id":22270,"created_at":"2020-09-16T20:48:04.397+08:00","updated_at":"2020-09-16T20:48:04.397+08:00"},{"id":3275586,"file_name":"music.mp3","project_id":192019,"asset_id":262493,"created_at":"2020-09-16T21:00:58.350+08:00","updated_at":"2020-09-16T21:00:58.350+08:00"},{"id":3275587,"file_name":"ao.mp3","project_id":192019,"asset_id":262494,"created_at":"2020-09-16T21:02:26.044+08:00","updated_at":"2020-09-16T21:02:26.044+08:00"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Download Android APP (APK)
Screenshot
繁中
简中
English
日本語
1:1:1
1:1
Full Width
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer