{"id":230944,"student_id":10,"content":"setBackdrop(\"bg.png\"); //設定背景圖\nlet p1_balloon = createSprite(\"p2_balloon.png\"); // 紅色水球\nlet p2_balloon = createSprite(\"p1_balloon.png\"); // 紫色水球\nlet p1_hint = createSprite(\"p1_s0.png\", \"p1_s1.png\", \"p1_s2.png\", \"p1_s3.png\"); // 紅色玩家按鍵提示\nlet p2_hint = createSprite(\"p2_s0.png\", \"p2_s1.png\", \"p2_s2.png\", \"p2_s3.png\"); // 紫色玩家按鍵提示\nlet p1 = createSprite(\"p1_0.png\", \"p1_1.png\", \"p1_2.png\", \"p1_3.png\", \"p1_4.png\", \"p1_5.png\"); // 紅色玩家\nlet p2 = createSprite(\"p2_0.png\", \"p2_1.png\", \"p2_2.png\", \"p2_3.png\", \"p2_4.png\", \"p2_5.png\"); // 紫色玩家\nlet countdown = createSprite(\"5.png\", \"4.png\", \"3.png\", \"2.png\", \"1.png\"); // 倒數計時\n\nlet clock = 0; // 紀錄遊戲迴圈執行的次數\n\ncountdown.hidden = true; //預設隱藏倒數\n\np1.moveTo(400, 650);\np2.moveTo(800, 650);\np1_hint.moveTo(200, 50);\np2_hint.moveTo(1000, 50);\np1_balloon.moveTo(800, 50);\np2_balloon.moveTo(400, 50);\n\n// 遊戲主迴圈\nfunction gameloop () {\n if (p1_balloon.scale \u003e 1) {\n p1.costumeId = 4;\n p2.costumeId = 5;\n p1_balloon.hidden = true;\n stop();\n }\n}\n\nfunction pressZ () {\n \n}\n\nfunction pressX () {\n \n}\n\nfunction pressC () {\n \n}\n\nfunction pressI () {\n p2.costumeId = 1;\n p2_hint.costumeId = 1;\n p2_balloon.scale += 0.003;\n}\n\nfunction pressO () {\n p2.costumeId = 2;\n p2_hint.costumeId = 2;\n p2_balloon.scale += 0.003;\n}\n\nfunction pressP () {\n p2.costumeId = 3;\n p2_hint.costumeId = 3;\n p2_balloon.scale += 0.003;\n}\n\nforever(gameloop); // 不斷執行遊戲迴圈\non('keydown', 'z', pressZ); // 當按下 z 按鍵時\non('keydown', 'x', pressX); // 當按下 x 按鍵時\non('keydown', 'c', pressC); // 當按下 c 按鍵時","created_at":"2021-02-25T12:35:43.687+08:00","updated_at":"2021-11-17T19:08:07.497+08:00","name":"叩叮灌水球(預設版)","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/230944/9a2602154c461dab9ff9c73cf51c9a62.jpg"},"parent_id":2,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":204,"hashid":"6rps9qvw3","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4215530,"file_name":"p2_0.png","project_id":230944,"asset_id":323728,"created_at":"2021-03-08T10:56:49.074+08:00","updated_at":"2021-03-08T10:56:49.074+08:00"},{"id":4215531,"file_name":"p1_s3.png","project_id":230944,"asset_id":323729,"created_at":"2021-03-08T10:56:49.075+08:00","updated_at":"2021-03-08T10:56:49.075+08:00"},{"id":4215522,"file_name":"p2_s1.png","project_id":230944,"asset_id":323720,"created_at":"2021-03-08T10:56:46.783+08:00","updated_at":"2021-03-08T10:56:46.783+08:00"},{"id":4215523,"file_name":"p2_s0.png","project_id":230944,"asset_id":323721,"created_at":"2021-03-08T10:56:46.785+08:00","updated_at":"2021-03-08T10:56:46.785+08:00"},{"id":4219105,"file_name":"1.png","project_id":230944,"asset_id":323940,"created_at":"2021-03-10T15:54:56.152+08:00","updated_at":"2021-03-10T15:54:56.152+08:00"},{"id":4219106,"file_name":"2.png","project_id":230944,"asset_id":323941,"created_at":"2021-03-10T15:54:56.154+08:00","updated_at":"2021-03-10T15:54:56.154+08:00"},{"id":4215526,"file_name":"p2_4.png","project_id":230944,"asset_id":323724,"created_at":"2021-03-08T10:56:47.970+08:00","updated_at":"2021-03-08T10:56:47.970+08:00"},{"id":4215527,"file_name":"p2_3.png","project_id":230944,"asset_id":323725,"created_at":"2021-03-08T10:56:47.972+08:00","updated_at":"2021-03-08T10:56:47.972+08:00"},{"id":4215524,"file_name":"p2_balloon.png","project_id":230944,"asset_id":323722,"created_at":"2021-03-08T10:56:47.394+08:00","updated_at":"2021-03-08T10:56:47.394+08:00"},{"id":4215525,"file_name":"p2_5.png","project_id":230944,"asset_id":323723,"created_at":"2021-03-08T10:56:47.396+08:00","updated_at":"2021-03-08T10:56:47.396+08:00"},{"id":4215536,"file_name":"p1_5.png","project_id":230944,"asset_id":323734,"created_at":"2021-03-08T10:56:50.636+08:00","updated_at":"2021-03-08T10:56:50.636+08:00"},{"id":4215537,"file_name":"p1_4.png","project_id":230944,"asset_id":323735,"created_at":"2021-03-08T10:56:50.637+08:00","updated_at":"2021-03-08T10:56:50.637+08:00"},{"id":4215520,"file_name":"p2_s3.png","project_id":230944,"asset_id":323718,"created_at":"2021-03-08T10:56:46.256+08:00","updated_at":"2021-03-08T10:56:46.256+08:00"},{"id":4215521,"file_name":"p2_s2.png","project_id":230944,"asset_id":323719,"created_at":"2021-03-08T10:56:46.258+08:00","updated_at":"2021-03-08T10:56:46.258+08:00"},{"id":4215532,"file_name":"p1_s2.png","project_id":230944,"asset_id":323730,"created_at":"2021-03-08T10:56:49.565+08:00","updated_at":"2021-03-08T10:56:49.565+08:00"},{"id":4215533,"file_name":"p1_s1.png","project_id":230944,"asset_id":323731,"created_at":"2021-03-08T10:56:49.566+08:00","updated_at":"2021-03-08T10:56:49.566+08:00"},{"id":4215528,"file_name":"p2_2.png","project_id":230944,"asset_id":323726,"created_at":"2021-03-08T10:56:48.547+08:00","updated_at":"2021-03-08T10:56:48.547+08:00"},{"id":4215529,"file_name":"p2_1.png","project_id":230944,"asset_id":323727,"created_at":"2021-03-08T10:56:48.548+08:00","updated_at":"2021-03-08T10:56:48.548+08:00"},{"id":4215534,"file_name":"p1_s0.png","project_id":230944,"asset_id":323732,"created_at":"2021-03-08T10:56:50.119+08:00","updated_at":"2021-03-08T10:56:50.119+08:00"},{"id":4215535,"file_name":"p1_balloon.png","project_id":230944,"asset_id":323733,"created_at":"2021-03-08T10:56:50.121+08:00","updated_at":"2021-03-08T10:56:50.121+08:00"},{"id":4215539,"file_name":"p1_2.png","project_id":230944,"asset_id":323737,"created_at":"2021-03-08T10:56:51.181+08:00","updated_at":"2021-03-08T10:56:51.181+08:00"},{"id":4215541,"file_name":"p1_0.png","project_id":230944,"asset_id":323739,"created_at":"2021-03-08T10:56:51.688+08:00","updated_at":"2021-03-08T10:56:51.688+08:00"},{"id":4215538,"file_name":"p1_1.png","project_id":230944,"asset_id":323736,"created_at":"2021-03-08T10:56:51.180+08:00","updated_at":"2021-03-08T11:28:30.070+08:00"},{"id":4215540,"file_name":"p1_3.png","project_id":230944,"asset_id":323738,"created_at":"2021-03-08T10:56:51.686+08:00","updated_at":"2021-03-08T11:28:36.344+08:00"},{"id":4219107,"file_name":"3.png","project_id":230944,"asset_id":323942,"created_at":"2021-03-10T15:54:56.645+08:00","updated_at":"2021-03-10T15:54:56.645+08:00"},{"id":4219108,"file_name":"4.png","project_id":230944,"asset_id":323943,"created_at":"2021-03-10T15:54:56.646+08:00","updated_at":"2021-03-10T15:54:56.646+08:00"},{"id":4219109,"file_name":"5.png","project_id":230944,"asset_id":323944,"created_at":"2021-03-10T15:54:57.296+08:00","updated_at":"2021-03-10T15:54:57.296+08:00"},{"id":4219110,"file_name":"btn_2p.png","project_id":230944,"asset_id":323945,"created_at":"2021-03-10T15:54:57.297+08:00","updated_at":"2021-03-10T15:54:57.297+08:00"},{"id":4219103,"file_name":"btn_1p.png","project_id":230944,"asset_id":323938,"created_at":"2021-03-10T15:54:55.002+08:00","updated_at":"2021-03-10T15:54:55.002+08:00"},{"id":4219104,"file_name":"info.png","project_id":230944,"asset_id":323939,"created_at":"2021-03-10T15:54:55.003+08:00","updated_at":"2021-03-10T15:54:55.003+08:00"},{"id":4402507,"file_name":"pump.mp3","project_id":230944,"asset_id":333451,"created_at":"2021-03-30T12:22:30.905+08:00","updated_at":"2021-03-30T12:22:56.849+08:00"},{"id":4219111,"file_name":"bg.png","project_id":230944,"asset_id":323742,"created_at":"2021-03-10T16:01:09.018+08:00","updated_at":"2021-03-30T11:58:57.614+08:00"},{"id":4402509,"file_name":"bgm.mp3","project_id":230944,"asset_id":333453,"created_at":"2021-03-30T12:36:14.259+08:00","updated_at":"2021-03-30T12:36:21.764+08:00"},{"id":4402508,"file_name":"bomb.mp3","project_id":230944,"asset_id":333452,"created_at":"2021-03-30T12:26:23.667+08:00","updated_at":"2021-03-30T12:26:23.667+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦