{"id":239928,"student_id":10,"content":"setBackdrop(\"bg.png\")\nlet order_0 = createSprite(\"order_0.png\") //菜單1\nlet order_1 = createSprite(\"order_1.png\") //菜單1\nlet order_2 = createSprite(\"order_2.png\") //菜單1\nlet stacks_0 = createSprite(\"s0.png\", \"s1.png\", \"s2.png\", \"s3.png\", \"s4.png\", \"s5.png\", \"s6.png\", \"s7.png\", \"s8.png\", \"s9.png\", \"s10.png\")\nlet stacks_1 = createSprite(\"s0.png\", \"s1.png\", \"s2.png\", \"s3.png\", \"s4.png\", \"s5.png\", \"s6.png\", \"s7.png\", \"s8.png\", \"s9.png\", \"s10.png\")\nlet stacks_2 = createSprite(\"s0.png\", \"s1.png\", \"s2.png\", \"s3.png\", \"s4.png\", \"s5.png\", \"s6.png\", \"s7.png\", \"s8.png\", \"s9.png\", \"s10.png\")\nvar target = createSprite(\"f_0.png\", \"f1.png\", \"f2.png\", \"f3.png\", \"f4.png\", \"f5.png\", \"f6.png\")\nlet result = createSprite(\"result.png\")\nlet info = createSprite(\"info.png\")\nlet emptyBow = createSprite('f6.png')\n\nlet type = 0\nlet count = 0\nlet timer = 1800 // 約 30 秒遊戲時間\n\ntarget.hidden = true\nresult.hidden = true\norder_0.moveTo(850, 200)\norder_1.moveTo(950, 200)\norder_2.moveTo(1050, 200)\nstacks_0.moveTo(600, 450)\nstacks_1.moveTo(840, 450)\nstacks_2.moveTo(1080, 450)\ntarget.moveTo(240, 450)\n\ncreateSound('bgm.mp3')\n\n// 遊戲主迴圈\nfunction gameloop () {\n emptyBow.moveTo(cursor)\n if (info.hidden) timer -= 1\n if (timer \u003c= 0) gameover()\n drawText(Math.floor(timer/60), 260, 90, 'white', 100)\n hoverEffect()\n}\n\n// 放置空碗\nfunction stageOnClick () {\n info.hidden = true\n if (cursor.x \u003e 300 \u0026\u0026 cursor.y \u003e 300 \u0026\u0026 emptyBow.hidden == false) {\n emptyBow.hidden = true;\n count += type\n updateStacks()\n createSound('drop.mp3')\n }\n}\n\n// 更新碗堆的造型\nfunction updateStacks () {\n if (count \u003c 10) {\n stacks_0.costumeId = count\n } else if (count \u003c 20) {\n stacks_0.costumeId = 10\n stacks_1.costumeId = count - 10\n } else if (count \u003c 30) {\n stacks_1.costumeId = 10\n stacks_2.costumeId = count - 20\n } else {\n stacks_2.costumeId = 10\n gameover()\n }\n}\n\n// 遊戲結束\nfunction gameover () {\n result.hidden = false\n drawText(count, 890, 490, 'white', 70)\n stop()\n}\n\n// 點擊拉麵吃拉麵\nfunction clickOnRoman () {\n if (type == 1) target.costumeId += 3\n if (type == 2) target.costumeId += 2\n if (type == 3) target.costumeId += 1\n // createSound('eat.mp3')\n if (target.costumeId == 6) {\n emptyBow.hidden = false\n target.hidden = true\n }\n}\n\n// 點擊菜單1\nfunction clickOnOrder1() {\n target.hidden = false\n target.costumeId = 0\n type = 1\n createSound('drop.mp3')\n}\n\n// 點擊菜單2\nfunction clickOnOrder2() {\n target.hidden = false\n target.costumeId = 0\n type = 2\n createSound('drop.mp3')\n}\n\n// 點擊菜單3\nfunction clickOnOrder3() {\n target.hidden = false\n target.costumeId = 0\n type = 3\n createSound('drop.mp3')\n}\n\n// 菜單滑鼠覆蓋特效\nfunction hoverEffect () {\n order_0.scale = 1;\n order_1.scale = 1;\n order_2.scale = 1;\n if (order_0.touched(cursor)) order_0.scale = 1.1;\n if (order_1.touched(cursor)) order_1.scale = 1.1;\n if (order_2.touched(cursor)) order_2.scale = 1.1;\n}\n\ntarget.on('click', clickOnRoman)\norder_0.on('click', clickOnOrder1)\norder_1.on('click', clickOnOrder2)\norder_2.on('click', clickOnOrder3)\non('click', stageOnClick)\nforever(gameloop)","created_at":"2021-03-29T17:48:08.060+08:00","updated_at":"2021-03-29T18:20:59.400+08:00","name":"拉麵大胃王V2","language":"javascript","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/239928/446ac29b441c833af7b8c4c0ed3bc8e0.jpg"},"parent_id":231372,"plugin":"Game.set({width: 1200, height: 900})","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":192,"hashid":"qmds8vn8w","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":4400549,"file_name":"s8.png","project_id":239928,"asset_id":324427,"created_at":"2021-03-29T17:48:08.079+08:00","updated_at":"2021-03-29T17:48:08.079+08:00"},{"id":4400550,"file_name":"s7.png","project_id":239928,"asset_id":324426,"created_at":"2021-03-29T17:48:08.080+08:00","updated_at":"2021-03-29T17:48:08.080+08:00"},{"id":4400535,"file_name":"bg_3.png","project_id":239928,"asset_id":324406,"created_at":"2021-03-29T17:48:08.066+08:00","updated_at":"2021-03-29T17:48:08.066+08:00"},{"id":4400536,"file_name":"f_0.png","project_id":239928,"asset_id":324407,"created_at":"2021-03-29T17:48:08.067+08:00","updated_at":"2021-03-29T17:48:08.067+08:00"},{"id":4400537,"file_name":"info.png","project_id":239928,"asset_id":333422,"created_at":"2021-03-29T17:48:08.068+08:00","updated_at":"2021-03-29T17:48:08.068+08:00"},{"id":4400538,"file_name":"f5.png","project_id":239928,"asset_id":333421,"created_at":"2021-03-29T17:48:08.069+08:00","updated_at":"2021-03-29T17:48:08.069+08:00"},{"id":4400539,"file_name":"f4.png","project_id":239928,"asset_id":333420,"created_at":"2021-03-29T17:48:08.070+08:00","updated_at":"2021-03-29T17:48:08.070+08:00"},{"id":4400540,"file_name":"f3.png","project_id":239928,"asset_id":333419,"created_at":"2021-03-29T17:48:08.071+08:00","updated_at":"2021-03-29T17:48:08.071+08:00"},{"id":4400541,"file_name":"f2.png","project_id":239928,"asset_id":333418,"created_at":"2021-03-29T17:48:08.072+08:00","updated_at":"2021-03-29T17:48:08.072+08:00"},{"id":4400542,"file_name":"f1.png","project_id":239928,"asset_id":333416,"created_at":"2021-03-29T17:48:08.073+08:00","updated_at":"2021-03-29T17:48:08.073+08:00"},{"id":4400543,"file_name":"bg.png","project_id":239928,"asset_id":327351,"created_at":"2021-03-29T17:48:08.073+08:00","updated_at":"2021-03-29T17:48:08.073+08:00"},{"id":4400544,"file_name":"bgm.mp3","project_id":239928,"asset_id":324431,"created_at":"2021-03-29T17:48:08.074+08:00","updated_at":"2021-03-29T17:48:08.074+08:00"},{"id":4400545,"file_name":"eat.mp3","project_id":239928,"asset_id":324430,"created_at":"2021-03-29T17:48:08.075+08:00","updated_at":"2021-03-29T17:48:08.075+08:00"},{"id":4400546,"file_name":"drop.mp3","project_id":239928,"asset_id":321685,"created_at":"2021-03-29T17:48:08.076+08:00","updated_at":"2021-03-29T17:48:08.076+08:00"},{"id":4400547,"file_name":"s10.png","project_id":239928,"asset_id":324429,"created_at":"2021-03-29T17:48:08.077+08:00","updated_at":"2021-03-29T17:48:08.077+08:00"},{"id":4400548,"file_name":"s9.png","project_id":239928,"asset_id":324428,"created_at":"2021-03-29T17:48:08.078+08:00","updated_at":"2021-03-29T17:48:08.078+08:00"},{"id":4400551,"file_name":"s6.png","project_id":239928,"asset_id":324425,"created_at":"2021-03-29T17:48:08.081+08:00","updated_at":"2021-03-29T17:48:08.081+08:00"},{"id":4400552,"file_name":"s5.png","project_id":239928,"asset_id":324424,"created_at":"2021-03-29T17:48:08.082+08:00","updated_at":"2021-03-29T17:48:08.082+08:00"},{"id":4400553,"file_name":"s4.png","project_id":239928,"asset_id":324423,"created_at":"2021-03-29T17:48:08.083+08:00","updated_at":"2021-03-29T17:48:08.083+08:00"},{"id":4400554,"file_name":"s3.png","project_id":239928,"asset_id":324422,"created_at":"2021-03-29T17:48:08.084+08:00","updated_at":"2021-03-29T17:48:08.084+08:00"},{"id":4400555,"file_name":"s2.png","project_id":239928,"asset_id":324421,"created_at":"2021-03-29T17:48:08.085+08:00","updated_at":"2021-03-29T17:48:08.085+08:00"},{"id":4400556,"file_name":"s1.png","project_id":239928,"asset_id":324420,"created_at":"2021-03-29T17:48:08.085+08:00","updated_at":"2021-03-29T17:48:08.085+08:00"},{"id":4400557,"file_name":"s0.png","project_id":239928,"asset_id":324419,"created_at":"2021-03-29T17:48:08.086+08:00","updated_at":"2021-03-29T17:48:08.086+08:00"},{"id":4400558,"file_name":"result.png","project_id":239928,"asset_id":324418,"created_at":"2021-03-29T17:48:08.087+08:00","updated_at":"2021-03-29T17:48:08.087+08:00"},{"id":4400559,"file_name":"order_1.png","project_id":239928,"asset_id":324417,"created_at":"2021-03-29T17:48:08.088+08:00","updated_at":"2021-03-29T17:48:08.088+08:00"},{"id":4400560,"file_name":"order_2.png","project_id":239928,"asset_id":324416,"created_at":"2021-03-29T17:48:08.089+08:00","updated_at":"2021-03-29T17:48:08.089+08:00"},{"id":4400561,"file_name":"order_0.png","project_id":239928,"asset_id":324415,"created_at":"2021-03-29T17:48:08.090+08:00","updated_at":"2021-03-29T17:48:08.090+08:00"},{"id":4400562,"file_name":"info.png","project_id":239928,"asset_id":324414,"created_at":"2021-03-29T17:48:08.090+08:00","updated_at":"2021-03-29T17:48:08.090+08:00"},{"id":4400563,"file_name":"f6.png","project_id":239928,"asset_id":324413,"created_at":"2021-03-29T17:48:08.091+08:00","updated_at":"2021-03-29T17:48:08.091+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦