{"id":94476,"student_id":3463,"content":"setBackdrop('#000000');\nvar ship = createSprite(\"ship.png\");\nvar clock = 0;\nvar bullets = [];\nvar score = 0;\nvar point = createSprite('food.png')\npoint.x = Math.random() * 440;\npoint.y = Math.random() * 280;\nforever (function () {\n shipControl();\n bullet();\n oint();\n});\n\n\nfunction shipControl() {\n ship.toward(cursor);\n if (!ship.touched(cursor)) {\n ship.stepForward(3);\n }\n}\nfunction bullet() {\n clock ++;\n if (clock % 3 === 0) {\n var bullet = createSprite('bullet.png');\n bullet.direction = Math.random()*360;\n bullet.stepForward(500);\n bullet.direction = Math.random()*360;\n bullets.push(bullet);\n }\n for (var i = 0; i \u003c bullets.length; i++) {\n bullets[i].stepForward(2);\n if (bullets[i].touched(ship)) {\n stop();\n }\n }\n}\nfunction oint() {\n print(score, 20, 20, 'red', 20);\n if (ship.touched(point)) {\n point.x = Math.random() * 440;\n point.y = Math.random() * 280;\n score += 1;\n }\n}","created_at":"2019-09-07T13:41:54.939+08:00","updated_at":"2019-09-08T10:24:38.719+08:00","name":"太空訓練 副本","language":"javascript","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/94476/6843cde7a51817c6753379b353b07963.jpg"},"parent_id":10707,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":93,"hashid":"kdmsdyyk","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1598457,"file_name":"bullet.png","project_id":94476,"asset_id":28733,"created_at":"2019-09-07T13:41:54.945+08:00","updated_at":"2019-09-07T13:41:54.945+08:00"},{"id":1598458,"file_name":"food.png","project_id":94476,"asset_id":28734,"created_at":"2019-09-07T13:41:54.947+08:00","updated_at":"2019-09-07T13:41:54.947+08:00"},{"id":1598459,"file_name":"ship.png","project_id":94476,"asset_id":28735,"created_at":"2019-09-07T13:41:54.948+08:00","updated_at":"2019-09-07T13:41:54.948+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦