{"id":231372,"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\");\nlet info = createSprite(\"info.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\ncreateSound('bgm.mp3', true);\n\n// 遊戲迴圈\nfunction gameloop () {\n if (ramen.costumeId == 6) {\n ramen.moveTo(cursor);\n }\n \n if (info.hidden) {\n timer -= 1/60; \n }\n \n if (timer \u003c 1/60) {\n createSprite('board.png');\n drawText(count, 890, 480, 'white', 70);\n stop();\n }\n drawText(Math.floor(timer), 260, 90, 'white', 100);\n \n \n orderA.scale = orderA.touched(cursor) ? 1.1 : 1;\n orderB.scale = orderB.touched(cursor) ? 1.1 : 1;\n orderC.scale = orderC.touched(cursor) ? 1.1 : 1;\n}\n\n// 遊戲場景任意處被點擊時\nfunction stageOnClick () {\n if (ramen.x \u003e 480 \u0026\u0026 ramen.y \u003e 450) {\n ramen.hidden = true;\n \n if (count \u003c 10) {\n stackA.costumeId = count;\n }\n else if (count \u003c 20) {\n stackA.costumeId = 10;\n stackB.costumeId = count - 10;\n }\n else if (count \u003c 30) {\n stackB.costumeId = 10;\n stackC.costumeId = count - 20;\n }\n \n count += type;\n \n createSound('drop.mp3');\n }\n \n info.hidden = true;\n}\n\n// 拉麵碗被點擊時\nfunction clickOnRoman () {\n if (ramen.costumeId \u003c 6) {\n ramen.costumeId += 1;\n createSound('eat.mp3');\n }\n}\n\n// 菜單 1 被點擊時\nfunction clickOnOrderA() {\n ramen.hidden = false; // 重新顯示\n ramen.costumeId = 0; // 切換回滿碗造型\n ramen.moveTo(240, 450); // 移動到叩叮面前\n createSound('drop.mp3');\n type = 1;\n}\n\n// 菜單 2 被點擊時\nfunction clickOnOrderB() {\n ramen.hidden = false; // 重新顯示\n ramen.costumeId = 0; // 切換回滿碗造型\n ramen.moveTo(240, 450); // 移動到叩叮面前\n createSound('drop.mp3');\n type = 2;\n}\n\n// 菜單 3 被點擊時\nfunction clickOnOrderC() {\n ramen.hidden = false; // 重新顯示\n ramen.costumeId = 0; // 切換回滿碗造型\n ramen.moveTo(240, 450); // 移動到叩叮面前\n createSound('drop.mp3');\n type = 3;\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', clickOnRoman); // 當拉麵被點擊時\n\n\n","created_at":"2021-03-02T15:12:53.656+08:00","updated_at":"2021-11-18T16:03:18.599+08:00","name":"拉麵大胃王(預設版)","language":"javascript","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/231372/be2d36f79e289f417bbdb70e4da7c84d.jpg"},"parent_id":2,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":198,"hashid":"meysw9r2j","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4222630,"file_name":"s7.png","project_id":231372,"asset_id":324426,"created_at":"2021-03-12T17:38:44.901+08:00","updated_at":"2021-03-12T17:38:44.901+08:00"},{"id":4222631,"file_name":"s8.png","project_id":231372,"asset_id":324427,"created_at":"2021-03-12T17:38:44.903+08:00","updated_at":"2021-03-12T17:38:44.903+08:00"},{"id":4222623,"file_name":"s0.png","project_id":231372,"asset_id":324419,"created_at":"2021-03-12T17:38:42.109+08:00","updated_at":"2021-03-12T17:38:42.109+08:00"},{"id":4222624,"file_name":"s1.png","project_id":231372,"asset_id":324420,"created_at":"2021-03-12T17:38:42.676+08:00","updated_at":"2021-03-12T17:38:42.676+08:00"},{"id":4222625,"file_name":"s2.png","project_id":231372,"asset_id":324421,"created_at":"2021-03-12T17:38:42.679+08:00","updated_at":"2021-03-12T17:38:42.679+08:00"},{"id":4222626,"file_name":"s3.png","project_id":231372,"asset_id":324422,"created_at":"2021-03-12T17:38:43.313+08:00","updated_at":"2021-03-12T17:38:43.313+08:00"},{"id":4222627,"file_name":"s4.png","project_id":231372,"asset_id":324423,"created_at":"2021-03-12T17:38:43.315+08:00","updated_at":"2021-03-12T17:38:43.315+08:00"},{"id":4222628,"file_name":"s5.png","project_id":231372,"asset_id":324424,"created_at":"2021-03-12T17:38:44.119+08:00","updated_at":"2021-03-12T17:38:44.119+08:00"},{"id":4222629,"file_name":"s6.png","project_id":231372,"asset_id":324425,"created_at":"2021-03-12T17:38:44.121+08:00","updated_at":"2021-03-12T17:38:44.121+08:00"},{"id":4222632,"file_name":"s9.png","project_id":231372,"asset_id":324428,"created_at":"2021-03-12T17:38:45.756+08:00","updated_at":"2021-03-12T17:38:45.756+08:00"},{"id":4222633,"file_name":"s10.png","project_id":231372,"asset_id":324429,"created_at":"2021-03-12T17:38:45.758+08:00","updated_at":"2021-03-12T17:38:45.758+08:00"},{"id":4222622,"file_name":"board.png","project_id":231372,"asset_id":324418,"created_at":"2021-03-12T17:38:42.108+08:00","updated_at":"2021-11-16T15:05:09.574+08:00"},{"id":4222660,"file_name":"eat.mp3","project_id":231372,"asset_id":324430,"created_at":"2021-03-12T17:56:08.760+08:00","updated_at":"2021-03-12T17:56:08.760+08:00"},{"id":4222634,"file_name":"drop.mp3","project_id":231372,"asset_id":321685,"created_at":"2021-03-12T17:53:30.575+08:00","updated_at":"2021-03-12T17:53:30.575+08:00"},{"id":4222678,"file_name":"bgm.mp3","project_id":231372,"asset_id":324431,"created_at":"2021-03-12T18:29:55.313+08:00","updated_at":"2021-03-12T18:29:55.313+08:00"},{"id":4222618,"file_name":"info.png","project_id":231372,"asset_id":324414,"created_at":"2021-03-12T17:38:40.919+08:00","updated_at":"2021-03-12T17:38:40.919+08:00"},{"id":4222617,"file_name":"f6.png","project_id":231372,"asset_id":324413,"created_at":"2021-03-12T17:38:39.676+08:00","updated_at":"2021-03-12T17:38:39.676+08:00"},{"id":4400532,"file_name":"info.png","project_id":231372,"asset_id":333422,"created_at":"2021-03-29T17:15:39.706+08:00","updated_at":"2021-03-29T17:15:39.706+08:00"},{"id":4400530,"file_name":"f4.png","project_id":231372,"asset_id":333420,"created_at":"2021-03-29T17:15:38.676+08:00","updated_at":"2021-03-29T17:15:38.676+08:00"},{"id":4400531,"file_name":"f5.png","project_id":231372,"asset_id":333421,"created_at":"2021-03-29T17:15:38.678+08:00","updated_at":"2021-03-29T17:15:38.678+08:00"},{"id":4400526,"file_name":"bg.png","project_id":231372,"asset_id":327351,"created_at":"2021-03-29T17:15:37.265+08:00","updated_at":"2021-03-29T17:15:37.265+08:00"},{"id":4400527,"file_name":"f1.png","project_id":231372,"asset_id":333416,"created_at":"2021-03-29T17:15:37.266+08:00","updated_at":"2021-03-29T17:15:37.266+08:00"},{"id":4400533,"file_name":"f0.png","project_id":231372,"asset_id":324407,"created_at":"2021-03-29T17:16:18.747+08:00","updated_at":"2021-11-16T14:54:02.774+08:00"},{"id":4400534,"file_name":"bg_3.png","project_id":231372,"asset_id":324406,"created_at":"2021-03-29T17:17:16.948+08:00","updated_at":"2021-03-29T17:17:24.781+08:00"},{"id":4400528,"file_name":"f2.png","project_id":231372,"asset_id":333418,"created_at":"2021-03-29T17:15:37.961+08:00","updated_at":"2021-03-29T17:15:37.961+08:00"},{"id":4400529,"file_name":"f3.png","project_id":231372,"asset_id":333419,"created_at":"2021-03-29T17:15:37.963+08:00","updated_at":"2021-03-29T17:15:37.963+08:00"},{"id":4222620,"file_name":"order_3.png","project_id":231372,"asset_id":324416,"created_at":"2021-03-12T17:38:41.500+08:00","updated_at":"2021-06-24T15:42:01.589+08:00"},{"id":4222621,"file_name":"order_2.png","project_id":231372,"asset_id":324417,"created_at":"2021-03-12T17:38:41.502+08:00","updated_at":"2021-06-24T15:42:05.017+08:00"},{"id":4222619,"file_name":"order_1.png","project_id":231372,"asset_id":324415,"created_at":"2021-03-12T17:38:40.921+08:00","updated_at":"2021-06-24T15:42:07.334+08:00"},{"id":6492186,"file_name":"f6.png","project_id":231372,"asset_id":324413,"created_at":"2021-11-14T15:41:33.540+08:00","updated_at":"2021-11-14T15:41:33.540+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦