{"id":325998,"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 number = createSprite(\"5.png\", \"4.png\", \"3.png\", \"2.png\", \"1.png\"); // 倒數計時\n\nlet clock = 0; // 紀錄遊戲迴圈執行的次數\n\nnumber.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\np1_balloon.scale = 0.3;\np2_balloon.scale = 0.3;\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 p1.costumeId = 1;\n p1_hint.costumeId = 1;\n p1_balloon.scale += 0.005;\n}\n\nfunction pressX () {\n p1.costumeId = 2;\n p1_hint.costumeId = 2;\n p1_balloon.scale += 0.005;\n}\n\nfunction pressC () {\n p1.costumeId = 3;\n p1_hint.costumeId = 3;\n p1_balloon.scale += 0.005;\n}\n\nfunction pressI () {\n p2.costumeId = 1;\n p2_hint.costumeId = 1;\n p2_balloon.scale += 0.005;\n}\n\nfunction pressO () {\n p2.costumeId = 2;\n p2_hint.costumeId = 2;\n p2_balloon.scale += 0.005;\n}\n\nfunction pressP () {\n p2.costumeId = 3;\n p2_hint.costumeId = 3;\n p2_balloon.scale += 0.005;\n}\n\nforever(gameloop); // 不斷執行遊戲迴圈\non('keydown', 'z', pressZ); // 當按下 z 按鍵時\non('keydown', 'x', pressX); // 當按下 x 按鍵時\non('keydown', 'c', pressC); // 當按下 c 按鍵時\n\non('keydown', 'i', pressI); // 當按下 i 按鍵時\non('keydown', 'o', pressO); // 當按下 o 按鍵時\non('keydown', 'p', pressP); // 當按下 p 按鍵時\n\n","created_at":"2021-12-13T18:06:40.104+08:00","updated_at":"2022-03-08T15:17:22.944+08:00","name":"叩叮灌水球(預設版)","language":"javascript","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/325998/b230fa3bcc0fafe3f75ee57f07ce202f.jpg"},"parent_id":2,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":218,"hashid":"yeysvd44j","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":6852277,"file_name":"bgm.mp3","project_id":325998,"asset_id":450812,"created_at":"2021-12-15T16:03:55.244+08:00","updated_at":"2021-12-15T16:03:55.244+08:00"},{"id":6852278,"file_name":"bomb.mp3","project_id":325998,"asset_id":450813,"created_at":"2021-12-15T16:03:55.248+08:00","updated_at":"2021-12-15T16:03:55.248+08:00"},{"id":6852279,"file_name":"pump.mp3","project_id":325998,"asset_id":450814,"created_at":"2021-12-15T16:03:55.252+08:00","updated_at":"2021-12-15T16:03:55.252+08:00"},{"id":6852280,"file_name":"bg.png","project_id":325998,"asset_id":450815,"created_at":"2021-12-15T16:03:55.258+08:00","updated_at":"2021-12-15T16:03:55.258+08:00"},{"id":6852281,"file_name":"btn_2p.png","project_id":325998,"asset_id":450816,"created_at":"2021-12-15T16:03:55.262+08:00","updated_at":"2021-12-15T16:03:55.262+08:00"},{"id":6852282,"file_name":"5.png","project_id":325998,"asset_id":450817,"created_at":"2021-12-15T16:03:55.265+08:00","updated_at":"2021-12-15T16:03:55.265+08:00"},{"id":6852283,"file_name":"4.png","project_id":325998,"asset_id":450818,"created_at":"2021-12-15T16:03:55.270+08:00","updated_at":"2021-12-15T16:03:55.270+08:00"},{"id":6852284,"file_name":"3.png","project_id":325998,"asset_id":450819,"created_at":"2021-12-15T16:03:55.274+08:00","updated_at":"2021-12-15T16:03:55.274+08:00"},{"id":6852285,"file_name":"2.png","project_id":325998,"asset_id":450820,"created_at":"2021-12-15T16:03:55.278+08:00","updated_at":"2021-12-15T16:03:55.278+08:00"},{"id":6852286,"file_name":"1.png","project_id":325998,"asset_id":450821,"created_at":"2021-12-15T16:03:55.282+08:00","updated_at":"2021-12-15T16:03:55.282+08:00"},{"id":6852287,"file_name":"info.png","project_id":325998,"asset_id":450822,"created_at":"2021-12-15T16:03:55.286+08:00","updated_at":"2021-12-15T16:03:55.286+08:00"},{"id":6852288,"file_name":"btn_1p.png","project_id":325998,"asset_id":450823,"created_at":"2021-12-15T16:03:55.290+08:00","updated_at":"2021-12-15T16:03:55.290+08:00"},{"id":6852289,"file_name":"p1_0.png","project_id":325998,"asset_id":450824,"created_at":"2021-12-15T16:03:55.296+08:00","updated_at":"2021-12-15T16:03:55.296+08:00"},{"id":6852290,"file_name":"p1_3.png","project_id":325998,"asset_id":450825,"created_at":"2021-12-15T16:03:55.302+08:00","updated_at":"2021-12-15T16:03:55.302+08:00"},{"id":6852291,"file_name":"p1_2.png","project_id":325998,"asset_id":450826,"created_at":"2021-12-15T16:03:55.305+08:00","updated_at":"2021-12-15T16:03:55.305+08:00"},{"id":6852292,"file_name":"p1_1.png","project_id":325998,"asset_id":450827,"created_at":"2021-12-15T16:03:55.310+08:00","updated_at":"2021-12-15T16:03:55.310+08:00"},{"id":6852293,"file_name":"p1_4.png","project_id":325998,"asset_id":450828,"created_at":"2021-12-15T16:03:55.314+08:00","updated_at":"2021-12-15T16:03:55.314+08:00"},{"id":6852294,"file_name":"p1_5.png","project_id":325998,"asset_id":450829,"created_at":"2021-12-15T16:03:55.318+08:00","updated_at":"2021-12-15T16:03:55.318+08:00"},{"id":6852295,"file_name":"p1_balloon.png","project_id":325998,"asset_id":450830,"created_at":"2021-12-15T16:03:55.322+08:00","updated_at":"2021-12-15T16:03:55.322+08:00"},{"id":6852296,"file_name":"p1_s0.png","project_id":325998,"asset_id":450831,"created_at":"2021-12-15T16:03:55.326+08:00","updated_at":"2021-12-15T16:03:55.326+08:00"},{"id":6852297,"file_name":"p1_s1.png","project_id":325998,"asset_id":450832,"created_at":"2021-12-15T16:03:55.329+08:00","updated_at":"2021-12-15T16:03:55.329+08:00"},{"id":6852298,"file_name":"p1_s2.png","project_id":325998,"asset_id":450833,"created_at":"2021-12-15T16:03:55.333+08:00","updated_at":"2021-12-15T16:03:55.333+08:00"},{"id":6852299,"file_name":"p1_s3.png","project_id":325998,"asset_id":450834,"created_at":"2021-12-15T16:03:55.337+08:00","updated_at":"2021-12-15T16:03:55.337+08:00"},{"id":6852300,"file_name":"p2_0.png","project_id":325998,"asset_id":450835,"created_at":"2021-12-15T16:03:55.341+08:00","updated_at":"2021-12-15T16:03:55.341+08:00"},{"id":6852301,"file_name":"p2_1.png","project_id":325998,"asset_id":450836,"created_at":"2021-12-15T16:03:55.345+08:00","updated_at":"2021-12-15T16:03:55.345+08:00"},{"id":6852302,"file_name":"p2_2.png","project_id":325998,"asset_id":450837,"created_at":"2021-12-15T16:03:55.348+08:00","updated_at":"2021-12-15T16:03:55.348+08:00"},{"id":6852303,"file_name":"p2_3.png","project_id":325998,"asset_id":450838,"created_at":"2021-12-15T16:03:55.352+08:00","updated_at":"2021-12-15T16:03:55.352+08:00"},{"id":6852304,"file_name":"p2_4.png","project_id":325998,"asset_id":450839,"created_at":"2021-12-15T16:03:55.363+08:00","updated_at":"2021-12-15T16:03:55.363+08:00"},{"id":6852305,"file_name":"p2_5.png","project_id":325998,"asset_id":450840,"created_at":"2021-12-15T16:03:55.366+08:00","updated_at":"2021-12-15T16:03:55.366+08:00"},{"id":6852306,"file_name":"p2_balloon.png","project_id":325998,"asset_id":450841,"created_at":"2021-12-15T16:03:55.371+08:00","updated_at":"2021-12-15T16:03:55.371+08:00"},{"id":6852307,"file_name":"p2_s0.png","project_id":325998,"asset_id":450842,"created_at":"2021-12-15T16:03:55.374+08:00","updated_at":"2021-12-15T16:03:55.374+08:00"},{"id":6852308,"file_name":"p2_s1.png","project_id":325998,"asset_id":450843,"created_at":"2021-12-15T16:03:55.378+08:00","updated_at":"2021-12-15T16:03:55.378+08:00"},{"id":6852309,"file_name":"p2_s2.png","project_id":325998,"asset_id":450844,"created_at":"2021-12-15T16:03:55.383+08:00","updated_at":"2021-12-15T16:03:55.383+08:00"},{"id":6852310,"file_name":"p2_s3.png","project_id":325998,"asset_id":450845,"created_at":"2021-12-15T16:03:55.386+08:00","updated_at":"2021-12-15T16:03:55.386+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦