{"id":360159,"student_id":10,"content":"setBackdrop('bg.png'); //設定背景圖\nlet orderA = createSprite('order_1.png'); //菜單A\nlet orderB = createSprite('order_2.png'); //菜單B\nlet orderC = createSprite('order_3.png'); //菜單C\nlet stacksA = createSprite('s0.png', 's1.png', 's2.png', 's3.png', 's4.png', 's5.png', 's6.png', 's7.png', 's8.png', 's9.png', 's10.png');\nlet stacksB = createSprite('s0.png', 's1.png', 's2.png', 's3.png', 's4.png', 's5.png', 's6.png', 's7.png', 's8.png', 's9.png', 's10.png');\nlet stacksC = createSprite('s0.png', 's1.png', 's2.png', 's3.png', 's4.png', 's5.png', 's6.png', 's7.png', 's8.png', 's9.png', 's10.png');\nlet ramen = createSprite('f0.png', 'f1.png', 'f2.png', 'f3.png', 'f4.png', 'f5.png', 'f6.png');\nlet board = createSprite('board.png');\n\nlet count = 0; // 紀錄吃了多少碗\nlet timer = 30; // 約 30 秒遊戲時間\nlet type = 0; // 當前拉麵種類\n\nboard.hidden = true; // 預設隱藏計分板\n\norderA.moveTo(850, 200);\norderB.moveTo(950, 200);\norderC.moveTo(1050, 200);\nstacksA.moveTo(600, 450);\nstacksB.moveTo(840, 450);\nstacksC.moveTo(1080, 450);\nramen.moveTo(240, 450);\n\n// 遊戲迴圈\nfunction gameloop () {\n drawText(timer, 260, 90, 'white', 100);\n}\n\n// 遊戲場景任意處被點擊時\nfunction stageOnClick () {\n \n}\n\n// 拉麵碗被點擊時\nfunction clickOnRomen () {\n \n}\n\n// 菜單 1 被點擊時\nfunction clickOnOrderA() {\n ramen.hidden = false;\n ramen.costumeId = 0;\n ramen.moveTo(240, 450);\n}\n\n// 菜單 2 被點擊時\nfunction clickOnOrderB() {\n \n}\n\n// 菜單 3 被點擊時\nfunction clickOnOrderC() {\n \n}\n\n// 根據碗數更新三個碗堆的造型\nfunction updateStacks() {\n if (count \u003c= 10) {\n stacksA.costumeId = count\n } else if (count \u003c= 20) {\n stacksA.costumeId = 10\n stacksB.costumeId = count - 10\n } else if (count \u003c= 30) {\n stacksB.costumeId = 10\n stacksC.costumeId = count - 20\n }\n}\n\nforever(gameloop); // 不斷執行遊戲迴圈\non('click', stageOnClick); // 當遊戲場景被點擊時\norderA.on('click', clickOnOrderA); // 當菜單 A 被點擊時\norderB.on('click', clickOnOrderB); // 當菜單 B 被點擊時\norderC.on('click', clickOnOrderC); // 當菜單 C 被點擊時\nramen.on('click', clickOnRomen); // 當拉麵被點擊時","created_at":"2022-03-22T00:49:23.515+08:00","updated_at":"2022-03-22T00:49:31.604+08:00","name":"拉麵大胃王(預設版) 副本","language":"javascript","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/360159/b230fa3bcc0fafe3f75ee57f07ce202f.jpg"},"parent_id":360070,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":143,"hashid":"9ygspmkj9","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7904102,"file_name":"info.png","project_id":360159,"asset_id":488724,"created_at":"2022-03-22T00:49:23.525+08:00","updated_at":"2022-03-22T00:49:23.525+08:00"},{"id":7904103,"file_name":"f5.png","project_id":360159,"asset_id":488725,"created_at":"2022-03-22T00:49:23.526+08:00","updated_at":"2022-03-22T00:49:23.526+08:00"},{"id":7904104,"file_name":"f4.png","project_id":360159,"asset_id":488726,"created_at":"2022-03-22T00:49:23.527+08:00","updated_at":"2022-03-22T00:49:23.527+08:00"},{"id":7904105,"file_name":"f3.png","project_id":360159,"asset_id":488727,"created_at":"2022-03-22T00:49:23.528+08:00","updated_at":"2022-03-22T00:49:23.528+08:00"},{"id":7904106,"file_name":"f2.png","project_id":360159,"asset_id":488728,"created_at":"2022-03-22T00:49:23.529+08:00","updated_at":"2022-03-22T00:49:23.529+08:00"},{"id":7904107,"file_name":"f1.png","project_id":360159,"asset_id":488729,"created_at":"2022-03-22T00:49:23.530+08:00","updated_at":"2022-03-22T00:49:23.530+08:00"},{"id":7904108,"file_name":"bg.png","project_id":360159,"asset_id":488730,"created_at":"2022-03-22T00:49:23.531+08:00","updated_at":"2022-03-22T00:49:23.531+08:00"},{"id":7904109,"file_name":"bgm.mp3","project_id":360159,"asset_id":488731,"created_at":"2022-03-22T00:49:23.532+08:00","updated_at":"2022-03-22T00:49:23.532+08:00"},{"id":7904110,"file_name":"eat.mp3","project_id":360159,"asset_id":488732,"created_at":"2022-03-22T00:49:23.533+08:00","updated_at":"2022-03-22T00:49:23.533+08:00"},{"id":7904111,"file_name":"drop.mp3","project_id":360159,"asset_id":488733,"created_at":"2022-03-22T00:49:23.534+08:00","updated_at":"2022-03-22T00:49:23.534+08:00"},{"id":7904096,"file_name":"f6.png","project_id":360159,"asset_id":488718,"created_at":"2022-03-22T00:49:23.520+08:00","updated_at":"2022-03-22T00:49:23.520+08:00"},{"id":7904097,"file_name":"order_1.png","project_id":360159,"asset_id":488719,"created_at":"2022-03-22T00:49:23.521+08:00","updated_at":"2022-03-22T00:49:23.521+08:00"},{"id":7904098,"file_name":"order_2.png","project_id":360159,"asset_id":488720,"created_at":"2022-03-22T00:49:23.522+08:00","updated_at":"2022-03-22T00:49:23.522+08:00"},{"id":7904099,"file_name":"order_3.png","project_id":360159,"asset_id":488721,"created_at":"2022-03-22T00:49:23.523+08:00","updated_at":"2022-03-22T00:49:23.523+08:00"},{"id":7904100,"file_name":"bg_3.png","project_id":360159,"asset_id":488722,"created_at":"2022-03-22T00:49:23.524+08:00","updated_at":"2022-03-22T00:49:23.524+08:00"},{"id":7904101,"file_name":"f0.png","project_id":360159,"asset_id":488723,"created_at":"2022-03-22T00:49:23.524+08:00","updated_at":"2022-03-22T00:49:23.524+08:00"},{"id":7904112,"file_name":"s10.png","project_id":360159,"asset_id":488734,"created_at":"2022-03-22T00:49:23.535+08:00","updated_at":"2022-03-22T00:49:23.535+08:00"},{"id":7904113,"file_name":"s9.png","project_id":360159,"asset_id":488735,"created_at":"2022-03-22T00:49:23.535+08:00","updated_at":"2022-03-22T00:49:23.535+08:00"},{"id":7904114,"file_name":"s8.png","project_id":360159,"asset_id":488736,"created_at":"2022-03-22T00:49:23.536+08:00","updated_at":"2022-03-22T00:49:23.536+08:00"},{"id":7904115,"file_name":"s7.png","project_id":360159,"asset_id":488737,"created_at":"2022-03-22T00:49:23.537+08:00","updated_at":"2022-03-22T00:49:23.537+08:00"},{"id":7904116,"file_name":"s6.png","project_id":360159,"asset_id":488738,"created_at":"2022-03-22T00:49:23.538+08:00","updated_at":"2022-03-22T00:49:23.538+08:00"},{"id":7904117,"file_name":"s5.png","project_id":360159,"asset_id":488739,"created_at":"2022-03-22T00:49:23.539+08:00","updated_at":"2022-03-22T00:49:23.539+08:00"},{"id":7904118,"file_name":"s4.png","project_id":360159,"asset_id":488740,"created_at":"2022-03-22T00:49:23.540+08:00","updated_at":"2022-03-22T00:49:23.540+08:00"},{"id":7904119,"file_name":"s3.png","project_id":360159,"asset_id":488741,"created_at":"2022-03-22T00:49:23.540+08:00","updated_at":"2022-03-22T00:49:23.540+08:00"},{"id":7904120,"file_name":"s2.png","project_id":360159,"asset_id":488742,"created_at":"2022-03-22T00:49:23.541+08:00","updated_at":"2022-03-22T00:49:23.541+08:00"},{"id":7904121,"file_name":"s1.png","project_id":360159,"asset_id":488743,"created_at":"2022-03-22T00:49:23.542+08:00","updated_at":"2022-03-22T00:49:23.542+08:00"},{"id":7904122,"file_name":"s0.png","project_id":360159,"asset_id":488744,"created_at":"2022-03-22T00:49:23.543+08:00","updated_at":"2022-03-22T00:49:23.543+08:00"},{"id":7904123,"file_name":"board.png","project_id":360159,"asset_id":488745,"created_at":"2022-03-22T00:49:23.543+08:00","updated_at":"2022-03-22T00:49:23.543+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦