{"id":67494,"student_id":1444,"content":"setBackdrop('bg.jpg');\nvar balloons = [];\nvar clock = 0;\nvar score = 0;\nvar status = 'start';\n\n\nforever(function () {\n\n createBalloon();\n move();\n checkClicked();\n});\n\n\nfunction createBalloon() {\n if (clock % 15 == 0 \u0026\u0026 status == 'start') {\n var balloon = createSprite(['0.png', 'a_1.png', 'a_5.png', 'a_10.png', 'a_50.png', 'a_100.png', 'm_2.png', 'e_2.png']);\n balloon.costumeId = Math.floor(Math.random()*8);\n balloon.y = 500;\n balloon.x = Math.random()*640;\n balloons.push(balloon)\n }\n clock += 1;\n print(score, 10, 10, 'red', 40);\n}\n\nfunction move() {\n for (var i = 0; i \u003c balloons.length; i++) {\n balloons[i].y -= 3;\n }\n}\n\nfunction checkClicked() {\n for (var i = 0; i \u003c balloons.length; i++) {\n if (cursor.isDown \u0026\u0026 balloons[i].touched(cursor)) {\n if (balloons[i].costumeId == 0) {\n score = 0;\n } else if (balloons[i].costumeId == 1) {\n score += 1;\n } else if (balloons[i].costumeId == 2) {\n score += 5;\n } else if (balloons[i].costumeId == 3) {\n score += 10;\n } else if (balloons[i].costumeId == 4) {\n score += 50;\n } else if (balloons[i].costumeId == 5) {\n score += 100;\n } else if (balloons[i].costumeId == 6) {\n score *= 2;\n } else if (balloons[i].costumeId == 7) {\n score /= 1;\n }\n\n balloons[i].destroy();\n }\n }\n}\n\n\nsetTimeout(function() {\n status = 'stop';\n}, 30000);\n\n","created_at":"2019-05-12T00:35:05.957+08:00","updated_at":"2019-10-28T20:46:14.123+08:00","name":"射氣球 副本","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/67494/3c75e65f1beb7e74d1f50768fe303de0.jpg"},"parent_id":11105,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":104,"hashid":"882s5dqy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1181534,"file_name":"bg.jpg","project_id":67494,"asset_id":29311,"created_at":"2019-05-12T00:35:05.962+08:00","updated_at":"2019-05-12T00:35:05.962+08:00"},{"id":1181535,"file_name":"target.png","project_id":67494,"asset_id":29312,"created_at":"2019-05-12T00:35:05.964+08:00","updated_at":"2019-05-12T00:35:05.964+08:00"},{"id":1181536,"file_name":"0.png","project_id":67494,"asset_id":29313,"created_at":"2019-05-12T00:35:05.965+08:00","updated_at":"2019-05-12T00:35:05.965+08:00"},{"id":1181537,"file_name":"a_1.png","project_id":67494,"asset_id":29314,"created_at":"2019-05-12T00:35:05.966+08:00","updated_at":"2019-05-12T00:35:05.966+08:00"},{"id":1181538,"file_name":"a_5.png","project_id":67494,"asset_id":29315,"created_at":"2019-05-12T00:35:05.966+08:00","updated_at":"2019-05-12T00:35:05.966+08:00"},{"id":1181539,"file_name":"e_2.png","project_id":67494,"asset_id":29316,"created_at":"2019-05-12T00:35:05.967+08:00","updated_at":"2019-05-12T00:35:05.967+08:00"},{"id":1181540,"file_name":"m_2.png","project_id":67494,"asset_id":29317,"created_at":"2019-05-12T00:35:05.968+08:00","updated_at":"2019-05-12T00:35:05.968+08:00"},{"id":1181541,"file_name":"a_100.png","project_id":67494,"asset_id":29318,"created_at":"2019-05-12T00:35:05.969+08:00","updated_at":"2019-05-12T00:35:05.969+08:00"},{"id":1181542,"file_name":"a_50.png","project_id":67494,"asset_id":29319,"created_at":"2019-05-12T00:35:05.970+08:00","updated_at":"2019-05-12T00:35:05.970+08:00"},{"id":1181543,"file_name":"a_10.png","project_id":67494,"asset_id":29320,"created_at":"2019-05-12T00:35:05.971+08:00","updated_at":"2019-05-12T00:35:05.971+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦