{"id":338029,"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 stackA = createSprite('s0.png', 's1.png', 's2.png', 's3.png', 's4.png', 's5.png', 's6.png', 's7.png', 's8.png', 's9.png', 's10.png');\nlet stackB = createSprite('s0.png', 's1.png', 's2.png', 's3.png', 's4.png', 's5.png', 's6.png', 's7.png', 's8.png', 's9.png', 's10.png');\nlet stackC = 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');\n\nlet count = 0; // 紀錄吃了多少碗\nlet timer = 30; // 30 秒遊戲時間\nlet type = 0; // 當前拉麵種類\n\norderA.moveTo(850, 200);\norderB.moveTo(950, 200);\norderC.moveTo(1050, 200);\nstackA.moveTo(600, 450);\nstackB.moveTo(840, 450);\nstackC.moveTo(1080, 450);\nramen.moveTo(240, 450);\n\n// 遊戲迴圈\nfunction gameloop () {\n \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 stackA.costumeId = count\n } else if (count \u003c= 20) {\n stackA.costumeId = 10\n stackB.costumeId = count - 10\n } else if (count \u003c= 30) {\n stackB.costumeId = 10\n stackC.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); // 當拉麵被點擊時\n","created_at":"2022-01-17T17:46:15.704+08:00","updated_at":"2022-01-18T18:18:21.450+08:00","name":"拉麵大胃王(預設版)","language":"javascript","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/338029/ef342d2685c59d9b44253e3634c0b7f0.jpg"},"parent_id":2,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":159,"hashid":"kdms6ndde","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7238640,"file_name":"f6.png","project_id":338029,"asset_id":467838,"created_at":"2022-01-17T17:46:41.077+08:00","updated_at":"2022-01-17T17:46:41.077+08:00"},{"id":7238613,"file_name":"board.png","project_id":338029,"asset_id":467811,"created_at":"2022-01-17T17:46:40.839+08:00","updated_at":"2022-01-17T17:46:40.839+08:00"},{"id":7238614,"file_name":"s0.png","project_id":338029,"asset_id":467812,"created_at":"2022-01-17T17:46:40.843+08:00","updated_at":"2022-01-17T17:46:40.843+08:00"},{"id":7238615,"file_name":"s1.png","project_id":338029,"asset_id":467813,"created_at":"2022-01-17T17:46:40.847+08:00","updated_at":"2022-01-17T17:46:40.847+08:00"},{"id":7238616,"file_name":"s2.png","project_id":338029,"asset_id":467814,"created_at":"2022-01-17T17:46:40.851+08:00","updated_at":"2022-01-17T17:46:40.851+08:00"},{"id":7238617,"file_name":"s3.png","project_id":338029,"asset_id":467815,"created_at":"2022-01-17T17:46:40.855+08:00","updated_at":"2022-01-17T17:46:40.855+08:00"},{"id":7238618,"file_name":"s4.png","project_id":338029,"asset_id":467816,"created_at":"2022-01-17T17:46:40.859+08:00","updated_at":"2022-01-17T17:46:40.859+08:00"},{"id":7238619,"file_name":"s5.png","project_id":338029,"asset_id":467817,"created_at":"2022-01-17T17:46:40.863+08:00","updated_at":"2022-01-17T17:46:40.863+08:00"},{"id":7238620,"file_name":"s6.png","project_id":338029,"asset_id":467818,"created_at":"2022-01-17T17:46:40.868+08:00","updated_at":"2022-01-17T17:46:40.868+08:00"},{"id":7238621,"file_name":"s7.png","project_id":338029,"asset_id":467819,"created_at":"2022-01-17T17:46:40.873+08:00","updated_at":"2022-01-17T17:46:40.873+08:00"},{"id":7238622,"file_name":"s8.png","project_id":338029,"asset_id":467820,"created_at":"2022-01-17T17:46:40.877+08:00","updated_at":"2022-01-17T17:46:40.877+08:00"},{"id":7238623,"file_name":"s9.png","project_id":338029,"asset_id":467821,"created_at":"2022-01-17T17:46:40.881+08:00","updated_at":"2022-01-17T17:46:40.881+08:00"},{"id":7238624,"file_name":"s10.png","project_id":338029,"asset_id":467822,"created_at":"2022-01-17T17:46:40.886+08:00","updated_at":"2022-01-17T17:46:40.886+08:00"},{"id":7238625,"file_name":"drop.mp3","project_id":338029,"asset_id":467823,"created_at":"2022-01-17T17:46:40.890+08:00","updated_at":"2022-01-17T17:46:40.890+08:00"},{"id":7238626,"file_name":"eat.mp3","project_id":338029,"asset_id":467824,"created_at":"2022-01-17T17:46:40.894+08:00","updated_at":"2022-01-17T17:46:40.894+08:00"},{"id":7238627,"file_name":"bgm.mp3","project_id":338029,"asset_id":467825,"created_at":"2022-01-17T17:46:41.007+08:00","updated_at":"2022-01-17T17:46:41.007+08:00"},{"id":7238628,"file_name":"bg.png","project_id":338029,"asset_id":467826,"created_at":"2022-01-17T17:46:41.013+08:00","updated_at":"2022-01-17T17:46:41.013+08:00"},{"id":7238629,"file_name":"f1.png","project_id":338029,"asset_id":467827,"created_at":"2022-01-17T17:46:41.017+08:00","updated_at":"2022-01-17T17:46:41.017+08:00"},{"id":7238630,"file_name":"f2.png","project_id":338029,"asset_id":467828,"created_at":"2022-01-17T17:46:41.021+08:00","updated_at":"2022-01-17T17:46:41.021+08:00"},{"id":7238631,"file_name":"f3.png","project_id":338029,"asset_id":467829,"created_at":"2022-01-17T17:46:41.025+08:00","updated_at":"2022-01-17T17:46:41.025+08:00"},{"id":7238632,"file_name":"f4.png","project_id":338029,"asset_id":467830,"created_at":"2022-01-17T17:46:41.029+08:00","updated_at":"2022-01-17T17:46:41.029+08:00"},{"id":7238633,"file_name":"f5.png","project_id":338029,"asset_id":467831,"created_at":"2022-01-17T17:46:41.034+08:00","updated_at":"2022-01-17T17:46:41.034+08:00"},{"id":7238634,"file_name":"info.png","project_id":338029,"asset_id":467832,"created_at":"2022-01-17T17:46:41.039+08:00","updated_at":"2022-01-17T17:46:41.039+08:00"},{"id":7238635,"file_name":"f0.png","project_id":338029,"asset_id":467833,"created_at":"2022-01-17T17:46:41.057+08:00","updated_at":"2022-01-17T17:46:41.057+08:00"},{"id":7238636,"file_name":"bg_3.png","project_id":338029,"asset_id":467834,"created_at":"2022-01-17T17:46:41.061+08:00","updated_at":"2022-01-17T17:46:41.061+08:00"},{"id":7238637,"file_name":"order_3.png","project_id":338029,"asset_id":467835,"created_at":"2022-01-17T17:46:41.066+08:00","updated_at":"2022-01-17T17:46:41.066+08:00"},{"id":7238638,"file_name":"order_2.png","project_id":338029,"asset_id":467836,"created_at":"2022-01-17T17:46:41.069+08:00","updated_at":"2022-01-17T17:46:41.069+08:00"},{"id":7238639,"file_name":"order_1.png","project_id":338029,"asset_id":467837,"created_at":"2022-01-17T17:46:41.073+08:00","updated_at":"2022-01-17T17:46:41.073+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦