{"id":35137,"student_id":1976,"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,\np1.scale = 1.3;\n\nvar p2 = createSprite([\"left_0.png\",\"left_1.png\",\"left_2.png\",\"left_3.png\"]);\np2.x = 300;\np2.y = 400;\np2.scale = 1.3;\n\np1_shoot = false;\np2_shoot = false;\n\n \nvar step = Math.random()*200 + 50;\nstep = Math.round(step);\n\nforever(function() {\n \n if(step == 0 \u0026\u0026 p1.costumeId == 0 ) {\n p1.costumeId = 1;\n p2.costumeId = 1;\n }\n \n if(step \u003e 0) {\n p1.x = p1.x + 1;\n p2.x = p2.x - 1;\n step -= 1;\n }\n \n if(key.enter \u0026\u0026 p1.costumeId == 1 \u0026\u0026 p1_shoot == false) {\n sound.play('shot.wav')\n p1.costumeId = 2;\n p2.costumeId = 3;\n }\n \n if(key.space \u0026\u0026 p1.costumeId == 1 \u0026\u0026 p2_shoot == false) {\n sound.play('shot.wav')\n p1.costumeId = 3;\n p2.costumeId = 2; \n }\n \n \n \n if(key.enter) {\n p1_shoot = true;\n }\n \n if(key.space) {\n p2_shoot = true;\n }\n \n \n});","created_at":"2018-07-17T15:32:06.010+08:00","updated_at":"2019-10-11T14:40:12.282+08:00","name":"牛仔大對決 副本","language":"javascript","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/35137/cebb99750e739412cdfe74adb7a61f46.jpg"},"parent_id":31561,"plugin":"","description":"","note":"","status":"public","like_student_ids":[],"is_featured":false,"views":313,"hashid":"p93sr263","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":639115,"file_name":"right_3.png","project_id":35137,"asset_id":71115,"created_at":"2018-07-17T15:32:06.018+08:00","updated_at":"2018-07-17T15:32:06.018+08:00"},{"id":639116,"file_name":"right_2.png","project_id":35137,"asset_id":71114,"created_at":"2018-07-17T15:32:06.020+08:00","updated_at":"2018-07-17T15:32:06.020+08:00"},{"id":639117,"file_name":"right_1.png","project_id":35137,"asset_id":71113,"created_at":"2018-07-17T15:32:06.021+08:00","updated_at":"2018-07-17T15:32:06.021+08:00"},{"id":639118,"file_name":"right_0.png","project_id":35137,"asset_id":71112,"created_at":"2018-07-17T15:32:06.022+08:00","updated_at":"2018-07-17T15:32:06.022+08:00"},{"id":639119,"file_name":"left_3.png","project_id":35137,"asset_id":71111,"created_at":"2018-07-17T15:32:06.024+08:00","updated_at":"2018-07-17T15:32:06.024+08:00"},{"id":639120,"file_name":"left_2.png","project_id":35137,"asset_id":71110,"created_at":"2018-07-17T15:32:06.025+08:00","updated_at":"2018-07-17T15:32:06.025+08:00"},{"id":639121,"file_name":"left_0.png","project_id":35137,"asset_id":71109,"created_at":"2018-07-17T15:32:06.027+08:00","updated_at":"2018-07-17T15:32:06.027+08:00"},{"id":639122,"file_name":"left_1.png","project_id":35137,"asset_id":71108,"created_at":"2018-07-17T15:32:06.028+08:00","updated_at":"2018-07-17T15:32:06.028+08:00"},{"id":639123,"file_name":"shot.wav","project_id":35137,"asset_id":71107,"created_at":"2018-07-17T15:32:06.029+08:00","updated_at":"2018-07-17T15:32:06.029+08:00"},{"id":639124,"file_name":"bg.png","project_id":35137,"asset_id":71106,"created_at":"2018-07-17T15:32:06.031+08:00","updated_at":"2018-07-17T15:32:06.031+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦