{"id":49816,"student_id":2008,"content":"setBackdrop('bg.jpg');\nvar clock = 0\nvar balloons = []\nvar i\nvar score = 0\nvar status = \"play\"\nvar target = createSprite(\"target.png\")\nvar speed\nvar cos\nforever(function() {\n target.moveTo(cursor.x, cursor.y)\n target.layer = 1\n print (\"得分 \"+score, 0, 0, \"red\", 20)\n clock += 1\n if (clock%30 == 0 \u0026\u0026 status == \"play\") {\n var balloon = createSprite([\"a_10.png\", \"a_50.png\", \"a_100.png\", \"m_2.png\", \"e_2.png\", \"a_5.png\", \"a_1.png\", \"0.png\"])\n cos = Math.floor(Math.random()*17)\n balloon.moveTo(Math.random()*640, 480)\n if (cos \u003c 2) {\n balloon.costumeId = 0\n }\n if (cos == 3 || cos == 4) {\n balloon.costumeId = 1\n }\n if (cos == 5 || cos == 6) {\n balloon.costumeId = 2\n }\n if (cos == 7 || cos == 8) {\n balloon.costumeId = 3\n }\n if (cos == 9 || cos == 10) {\n balloon.costumeId = 4\n }\n if (cos \u003e 10 \u0026\u0026 cos \u003c 13) {\n balloon.costumeId = 5\n }\n if (cos \u003e 13 \u0026\u0026 cos \u003c 16) {\n balloon.costumeId = 6\n }\n if (cos == 0) {\n balloon.costumeId = 7\n }\n balloons.push(balloon)\n }\n for (i = 0; i \u003c balloons.length; i++) {\n if (balloons[i].costumeId == 0) {\n speed = 2\n }\n if (balloons[i].costumeId == 1) {\n speed = 3\n }\n if (balloons[i].costumeId == 2) {\n speed = 3\n }\n if (balloons[i].costumeId == 3) {\n speed = 6\n }\n if (balloons[i].costumeId == 4) {\n speed = 3\n }\n if (balloons[i].costumeId == 5) {\n speed = 2\n }\n if (balloons[i].costumeId == 6) {\n speed = 2\n }\n if (balloons[i].costumeId == 7) {\n speed = 3\n }\n balloons[i].y -= speed\n if (cursor.isDown \u0026\u0026 balloons[i].touched(cursor)) {\n if (balloons[i].costumeId == 0) {\n score += 10\n }\n if (balloons[i].costumeId == 1) {\n score += 50\n }\n if (balloons[i].costumeId == 2) {\n score += 100\n }\n if (balloons[i].costumeId == 3) {\n score *= 2\n }\n if (balloons[i].costumeId == 4) {\n score /= 2\n }\n if (balloons[i].costumeId == 5) {\n score += 5\n }\n if (balloons[i].costumeId == 6) {\n score += 1\n }\n if (balloons[i].costumeId == 7) {\n score = 0\n }\n balloons[i].destroy();\n }\n\n }\n})\nsetTimeout(function() {\n status = \"game over\"\n}, 30000);","created_at":"2018-11-24T10:14:59.754+08:00","updated_at":"2019-09-21T19:24:16.293+08:00","name":"射氣球 副本","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/49816/0fa8919676d10a401336a1ed9912919d.jpg"},"parent_id":11105,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":87,"hashid":"wdksp9qm","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":891697,"file_name":"bg.jpg","project_id":49816,"asset_id":29311,"created_at":"2018-11-24T10:14:59.763+08:00","updated_at":"2018-11-24T10:14:59.763+08:00"},{"id":891698,"file_name":"target.png","project_id":49816,"asset_id":29312,"created_at":"2018-11-24T10:14:59.764+08:00","updated_at":"2018-11-24T10:14:59.764+08:00"},{"id":891699,"file_name":"0.png","project_id":49816,"asset_id":29313,"created_at":"2018-11-24T10:14:59.766+08:00","updated_at":"2018-11-24T10:14:59.766+08:00"},{"id":891700,"file_name":"a_1.png","project_id":49816,"asset_id":29314,"created_at":"2018-11-24T10:14:59.768+08:00","updated_at":"2018-11-24T10:14:59.768+08:00"},{"id":891701,"file_name":"a_5.png","project_id":49816,"asset_id":29315,"created_at":"2018-11-24T10:14:59.770+08:00","updated_at":"2018-11-24T10:14:59.770+08:00"},{"id":891702,"file_name":"e_2.png","project_id":49816,"asset_id":29316,"created_at":"2018-11-24T10:14:59.772+08:00","updated_at":"2018-11-24T10:14:59.772+08:00"},{"id":891703,"file_name":"m_2.png","project_id":49816,"asset_id":29317,"created_at":"2018-11-24T10:14:59.773+08:00","updated_at":"2018-11-24T10:14:59.773+08:00"},{"id":891704,"file_name":"a_100.png","project_id":49816,"asset_id":29318,"created_at":"2018-11-24T10:14:59.775+08:00","updated_at":"2018-11-24T10:14:59.775+08:00"},{"id":891705,"file_name":"a_50.png","project_id":49816,"asset_id":29319,"created_at":"2018-11-24T10:14:59.777+08:00","updated_at":"2018-11-24T10:14:59.777+08:00"},{"id":891706,"file_name":"a_10.png","project_id":49816,"asset_id":29320,"created_at":"2018-11-24T10:14:59.779+08:00","updated_at":"2018-11-24T10:14:59.779+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦