{"id":44330,"student_id":1652,"content":"setBackdrop('#000000');\nvar ship = createSprite(\"ship.png\");\nvar bullets = [];\nvar clock = 0;\nvar food=createSprite(\"food.png\");\nvar score=0\nfood.x=Math.random()*640\nfood.y=Math.random()*480\nforever(function () {\n print(bullets.length, 34, 51, \"white\", 20)\n print(score,30,100,'white',20)\n clock += 1\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 +=1){\n if(bullets[i].touched(ship)){\n stop();\n }\n bullets[i].stepForward(2);\n }\n \n if(!ship.touched(cursor)){\n ship.toward(cursor);\n ship.stepForward(50)\n \n }\n if(ship.touched(food)){\n food.x=Math.random()*640\n food.y=Math.random()*480\n score+=1\n }\n if(score === 30){\n print(\"Win\",317,260,'white',200) \n stop();\n \n }\n});","created_at":"2018-10-06T13:34:19.676+08:00","updated_at":"2019-10-27T08:01:42.270+08:00","name":"太空訓練 副本","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/44330/55bbe92f67e80626b4d79b4c8372e449.jpg"},"parent_id":10707,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":54,"hashid":"yeys4wpe","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":780256,"file_name":"bullet.png","project_id":44330,"asset_id":28733,"created_at":"2018-10-06T13:34:19.688+08:00","updated_at":"2018-10-06T13:34:19.688+08:00"},{"id":780257,"file_name":"food.png","project_id":44330,"asset_id":28734,"created_at":"2018-10-06T13:34:19.691+08:00","updated_at":"2018-10-06T13:34:19.691+08:00"},{"id":780258,"file_name":"ship.png","project_id":44330,"asset_id":28735,"created_at":"2018-10-06T13:34:19.693+08:00","updated_at":"2018-10-06T13:34:19.693+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦