{"id":44876,"student_id":2008,"content":"setBackdrop('bg.png', 0, 0, 640, 480);\n\nvar p1 = createSprite([\"right_0.png\", \"right_1.png\", \"right_2.png\", \"right_3.png\"]);\np1.x = 340;\np1.y = 400;\n\nvar p2 = createSprite([\"left_0.png\", \"left_1.png\", \"left_2.png\", \"left_3.png\"]);\np2.x = 300;\np2.y = 400;\nvar fire1 = 0\nvar fire2 = 0\nvar step = Math.random()*200 + 50;\nstep = Math.round(step);\n\nforever(function() {\n if (key.b) {\n p1.costumeId = 0\n p2.costumeId = 0\n p1.x = 340;\n p1.y = 400;\n p2.x = 300;\n p2.y = 400;\n fire1 = 0\n fire2 = 0\n step = Math.random()*200 + 50;\n step = Math.round(step);\n }\n if (key.space) {\n if (fire2 == 0 \u0026\u0026 p2.costumeId == 1) {\n p2.costumeId = 2\n p1.costumeId = 3\n sound.play('shot.wav')\n sound.play('blood.wav')\n\n }\n fire2 = 1\n }\n if (key.enter) {\n if (fire1 == 0 \u0026\u0026 p1.costumeId == 1) {\n p2.costumeId = 3\n p1.costumeId = 2\n sound.play('shot.wav')\n sound.play('blood.wav')\n\n\n }\n fire1 = 1\n }\n\n\n if (step \u003e 0) {\n step -= 1\n p1.x += 1\n p2.x -= 1\n }\n if (step == 0 \u0026\u0026 p1.costumeId == 0) {\n p1.costumeId = 1\n p2.costumeId = 1\n\n }\n});","created_at":"2018-10-13T10:01:14.803+08:00","updated_at":"2019-09-21T19:24:13.467+08:00","name":"牛仔大對決 副本","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/44876/f5e5204bf38c07737db8e18e6bfb32d1.jpg"},"parent_id":10701,"plugin":"","description":"","note":"","status":"public","like_student_ids":[],"is_featured":false,"views":74,"hashid":"qmdsvq5z","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":790975,"file_name":"bg.png","project_id":44876,"asset_id":28736,"created_at":"2018-10-13T10:01:14.814+08:00","updated_at":"2018-10-13T10:01:14.814+08:00"},{"id":790977,"file_name":"left_1.png","project_id":44876,"asset_id":28738,"created_at":"2018-10-13T10:01:14.824+08:00","updated_at":"2018-10-13T10:01:14.824+08:00"},{"id":790978,"file_name":"left_0.png","project_id":44876,"asset_id":28739,"created_at":"2018-10-13T10:01:14.830+08:00","updated_at":"2018-10-13T10:01:14.830+08:00"},{"id":790979,"file_name":"left_2.png","project_id":44876,"asset_id":28740,"created_at":"2018-10-13T10:01:14.836+08:00","updated_at":"2018-10-13T10:01:14.836+08:00"},{"id":790980,"file_name":"left_3.png","project_id":44876,"asset_id":28741,"created_at":"2018-10-13T10:01:14.838+08:00","updated_at":"2018-10-13T10:01:14.838+08:00"},{"id":790981,"file_name":"right_0.png","project_id":44876,"asset_id":28742,"created_at":"2018-10-13T10:01:14.840+08:00","updated_at":"2018-10-13T10:01:14.840+08:00"},{"id":790982,"file_name":"right_1.png","project_id":44876,"asset_id":28743,"created_at":"2018-10-13T10:01:14.843+08:00","updated_at":"2018-10-13T10:01:14.843+08:00"},{"id":790983,"file_name":"right_2.png","project_id":44876,"asset_id":28744,"created_at":"2018-10-13T10:01:14.845+08:00","updated_at":"2018-10-13T10:01:14.845+08:00"},{"id":790984,"file_name":"right_3.png","project_id":44876,"asset_id":28745,"created_at":"2018-10-13T10:01:14.847+08:00","updated_at":"2018-10-13T10:01:14.847+08:00"},{"id":794504,"file_name":"blood.wav","project_id":44876,"asset_id":90055,"created_at":"2018-10-13T11:29:21.483+08:00","updated_at":"2018-10-13T11:29:33.440+08:00"},{"id":794505,"file_name":"shot.wav","project_id":44876,"asset_id":90152,"created_at":"2018-10-13T11:29:49.421+08:00","updated_at":"2018-10-13T11:29:55.044+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦