{"id":129194,"student_id":3469,"content":"setBackdrop('bg.jpg');\nvar target = createSprite('target.png');\nvar balloons = [];\nvar clock = 0;\nvar score = 0;\nvar status = 'start';\n// 造型幫你寫好囉,直接複製吧!\n// '0.png', 'a_1.png', 'a_5.png', 'a_10.png', 'a_50.png', 'a_100.png', 'm_2.png', 'e_2.png'\nforever(function() {\n print(score, 10, 10, 'red', 40);\n target.x = cursor.x;\n target.y = cursor.y;\n target.direction += 1;\n createBalloon();\n move();\n checkClicked();\n});\nfunction createBalloon() {\n if (clock % 30 === 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++;\n}\nfunction move() {\n for (var i = 0; i \u003c balloons.length; i++) {\n balloons[i].y -= 3;\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 balloons[i].destroy();\n if (balloons[i].costumeId === 0) {\n score = 0;\n }\n else if (balloons[i].costumeId == 1){\n score += 1;\n }\n else if (balloons[i].costumeId == 2){\n score += 5;\n }\n else if (balloons[i].costumeId == 3){\n score += 10;\n }\n else if (balloons[i].costumeId == 4){\n score += 50;\n }\n else if (balloons[i].costumeId == 5){\n score += 100;\n }\n else if (balloons[i].costumeId == 6){\n score *= 2;\n }\n else if (balloons[i].costumeId == 7){\n score /= 2;\n }\n }\n }\n}\nsetTimeout(function() {\n status = 'stop';\n}, 30000);\n\n\n\n","created_at":"2020-02-23T13:35:25.742+08:00","updated_at":"2020-10-17T20:19:51.756+08:00","name":"氣球樂園 副本","language":"javascript","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/129194/9dbbfa97cf062e9ab8c98fdfc80d5efc.jpg"},"parent_id":69945,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":99,"hashid":"36ys9v6d","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2218618,"file_name":"bg.jpg","project_id":129194,"asset_id":123571,"created_at":"2020-02-23T13:35:25.753+08:00","updated_at":"2020-02-23T13:35:25.753+08:00"},{"id":2218619,"file_name":"target.png","project_id":129194,"asset_id":123570,"created_at":"2020-02-23T13:35:25.755+08:00","updated_at":"2020-02-23T13:35:25.755+08:00"},{"id":2218620,"file_name":"0.png","project_id":129194,"asset_id":123569,"created_at":"2020-02-23T13:35:25.758+08:00","updated_at":"2020-02-23T13:35:25.758+08:00"},{"id":2218621,"file_name":"a_1.png","project_id":129194,"asset_id":123568,"created_at":"2020-02-23T13:35:25.761+08:00","updated_at":"2020-02-23T13:35:25.761+08:00"},{"id":2218622,"file_name":"a_5.png","project_id":129194,"asset_id":123567,"created_at":"2020-02-23T13:35:25.763+08:00","updated_at":"2020-02-23T13:35:25.763+08:00"},{"id":2218623,"file_name":"e_2.png","project_id":129194,"asset_id":123566,"created_at":"2020-02-23T13:35:25.766+08:00","updated_at":"2020-02-23T13:35:25.766+08:00"},{"id":2218624,"file_name":"m_2.png","project_id":129194,"asset_id":123565,"created_at":"2020-02-23T13:35:25.769+08:00","updated_at":"2020-02-23T13:35:25.769+08:00"},{"id":2218625,"file_name":"a_100.png","project_id":129194,"asset_id":123564,"created_at":"2020-02-23T13:35:25.771+08:00","updated_at":"2020-02-23T13:35:25.771+08:00"},{"id":2218626,"file_name":"a_50.png","project_id":129194,"asset_id":123563,"created_at":"2020-02-23T13:35:25.772+08:00","updated_at":"2020-02-23T13:35:25.772+08:00"},{"id":2218627,"file_name":"a_10.png","project_id":129194,"asset_id":123562,"created_at":"2020-02-23T13:35:25.774+08:00","updated_at":"2020-02-23T13:35:25.774+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦