{"id":503853,"student_id":2589,"content":"","created_at":"2023-03-09T12:26:32.125+08:00","updated_at":"2023-03-09T13:46:07.108+08:00","name":"氣球樂園 - 開始後用滑鼠點擊舞台以啟用按鍵,重整畫面即可重新遊戲。","language":"javascript","screenshot":{"url":null},"parent_id":2,"plugin":"setBackdrop('bg.jpg');\nvar target = createSprite('target.png');\ntarget.layer = 1;\n\nvar balloons = [];\nvar clock = 0;\nvar scores = 0;\nvar status = 'start';\n\nforever(function(){\n target.x = cursor.x;\n target.y = cursor.y;\n if(clock%15 == 0 \u0026\u0026 status != 'stop') {\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 var rand = Math.random();\n if(rand \u003c 0.1) {\n balloon.costumeId = 0;\n }\n else if(rand \u003c 0.3) {\n balloon.costumeId = 1;\n }\n else if(rand \u003c 0.5) {\n balloon.costumeId = 2;\n }\n else if(rand \u003c 0.7) {\n balloon.costumeId = 3;\n }\n else if(rand \u003c 0.8) {\n balloon.costumeId = 4;\n }\n else if(rand \u003c 0.85) {\n balloon.costumeId = 5;\n }\n else if(rand \u003c 0.9) {\n balloon.costumeId = 6;\n }\n else {\n balloon.costumeId = 7;\n }\n balloon.y = 500;\n balloon.x = Math.random()*640;\n balloons.push(balloon);\n }\n for(var i=0; i\u003cballoons.length; i++) {\n \tballoons[i].y -= 3;\n if(cursor.isDown \u0026\u0026 balloons[i].touched(cursor)) {\n balloons[i].destroy();\n if(balloons[i].costumeId == 0) {\n \tscores = 0;\n }\n if(balloons[i].costumeId == 1) {\n \tscores += 1;\n }\n if(balloons[i].costumeId == 2) {\n \tscores += 5;\n }\n if(balloons[i].costumeId == 3) {\n \tscores += 10;\n }\n if(balloons[i].costumeId == 4) {\n \tscores += 50;\n }\n if(balloons[i].costumeId == 5) {\n \tscores += 100;\n }\n if(balloons[i].costumeId == 6) {\n \tscores *= 2;\n }\n if(balloons[i].costumeId == 7) {\n \tscores /= 2;\n }\n }\n if(balloons[i].costumeId == 0) {\n balloons[i].y -= 1;\n }\n if(balloons[i].costumeId == 1) {\n balloons[i].y -= 1;\n }\n if(balloons[i].costumeId == 2) {\n balloons[i].y -= 1;\n }\n if(balloons[i].costumeId == 3) {\n balloons[i].y -= 2;\n }\n if(balloons[i].costumeId == 4) {\n balloons[i].y -= 3;\n }\n if(balloons[i].costumeId == 5) {\n balloons[i].y -= 4;\n }\n if(balloons[i].costumeId == 6) {\n balloons[i].y -= 4;\n }\n if(balloons[i].costumeId == 7) {\n balloons[i].y -= 2;\n }\n }\n print(\"得分:\" + scores, 10, 10, 'red', 20);\n clock++;\n});\nsetTimeout(function() {\n\tstatus = 'stop';\n},30000);","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":60,"hashid":"wdks5nzev","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":11449239,"file_name":"bg.jpg","project_id":503853,"asset_id":612331,"created_at":"2023-03-09T12:26:37.189+08:00","updated_at":"2023-03-09T12:26:37.189+08:00"},{"id":11449240,"file_name":"target.png","project_id":503853,"asset_id":612332,"created_at":"2023-03-09T12:26:37.200+08:00","updated_at":"2023-03-09T12:26:37.200+08:00"},{"id":11449241,"file_name":"0.png","project_id":503853,"asset_id":612333,"created_at":"2023-03-09T12:26:37.208+08:00","updated_at":"2023-03-09T12:26:37.208+08:00"},{"id":11449242,"file_name":"a_1.png","project_id":503853,"asset_id":612334,"created_at":"2023-03-09T12:26:37.213+08:00","updated_at":"2023-03-09T12:26:37.213+08:00"},{"id":11449243,"file_name":"a_5.png","project_id":503853,"asset_id":612335,"created_at":"2023-03-09T12:26:37.220+08:00","updated_at":"2023-03-09T12:26:37.220+08:00"},{"id":11449244,"file_name":"e_2.png","project_id":503853,"asset_id":612336,"created_at":"2023-03-09T12:26:37.225+08:00","updated_at":"2023-03-09T12:26:37.225+08:00"},{"id":11449245,"file_name":"m_2.png","project_id":503853,"asset_id":612337,"created_at":"2023-03-09T12:26:37.234+08:00","updated_at":"2023-03-09T12:26:37.234+08:00"},{"id":11449246,"file_name":"a_100.png","project_id":503853,"asset_id":612338,"created_at":"2023-03-09T12:26:37.240+08:00","updated_at":"2023-03-09T12:26:37.240+08:00"},{"id":11449247,"file_name":"a_50.png","project_id":503853,"asset_id":612339,"created_at":"2023-03-09T12:26:37.245+08:00","updated_at":"2023-03-09T12:26:37.245+08:00"},{"id":11449248,"file_name":"a_10.png","project_id":503853,"asset_id":612340,"created_at":"2023-03-09T12:26:37.250+08:00","updated_at":"2023-03-09T12:26:37.250+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦