{"id":707150,"student_id":10,"content":"Game.set({ width: 1600, height: 900 })\nwindow.dispatchEvent(new Event('resize'));\n\nlet QA = [\n { q: '我想要辦理跨行轉帳,將部分的台幣存款轉移到另一家銀行\\n的帳戶上。', a: 1 },\n { q: '我要提領五萬台幣,準備在過過年發放紅包。', a: 1 },\n { q: '我想開立一個新的台幣存款帳戶。', a: 1 },\n { q: '我想要詢問台幣定期存款的利率和存款期限。', a: 1 },\n { q: '我想要辦理一筆台幣自動轉帳服務,將每月固定金額轉入另\\n一個帳戶。', a: 1 },\n { q: '我的薪水需要自動轉帳至我的台幣存款帳戶,想知道如何辦\\n理。', a: 1 },\n { q: '我想要詢問台幣定期存款的利率和存款期限。', a: 1 },\n { q: '我的台幣存摺遺失了,需要辦理補發。', a: 1 },\n { q: '我想要提領一百萬台幣,準備現金交易。', a: 1 },\n { q: '我想要將台幣六萬元轉到我兒子的帳戶,讓他繳學費。', a: 1 },\n \n { q: '我的薪資收入是以美元支付,我想開立一個美元帳戶。', a: 2 },\n { q: '我想要將手上的歐元存款轉換成台幣。', a: 2 },\n { q: '我打算前往日本旅遊,需要換取一些日圓以應付旅遊開支。', a: 2 },\n { q: '我的外幣存款需要進行定期存款,想問有哪些選擇及利率。', a: 2 },\n { q: '我想要將一筆外幣款項轉帳至我的朋友帳戶。', a: 2 },\n { q: '我想了解銀行開立美元帳戶的手續及所需文件。', a: 2 },\n { q: '我想知道銀行換取日圓的匯率及手續費是多少。', a: 2 },\n { q: '我的外幣存摺遺失了,需要辦理補發。', a: 2 },\n { q: '我想要將手上的歐元轉換成美元,請問銀行的匯率及手續費\\n是多少。', a: 2 },\n { q: '我想要辦理一筆跨國匯款至澳洲,想知道銀行的手續及轉帳\\n時間。', a: 2 },\n \n { q: '我想要購買儲蓄險或投資型保險,想知道銀行有哪些選擇?', a: 3 },\n { q: '我想要購買債券作為投資,想詢問銀行有哪些選擇?', a: 3 },\n { q: '我的投資組合需要進行調整,我想與銀行理財專員討論。', a: 3 },\n { q: '我想要了解銀行提供的理財服務,包括資產配置及建議。', a: 3 },\n { q: '我打算開始投資,想了解銀行提供的基金和ETF產品。', a: 3 },\n { q: '我想要了解銀行提供的股票交易服務,及相關的手續費用。', a: 3 },\n { q: '我想要了解銀行提供的投資型保險,以及相關的投資風險。', a: 3 },\n { q: '我想要查詢基金和 ETF 的投資報酬率和風險。', a: 3 },\n { q: '我想要知道銀行理財服務的收費和方案。', a: 3 },\n { q: '我想要了解銀行提供的貴金屬投資服務,包括黃金及白銀。', a: 3 },\n \n { q: '我的貸款還款日期即將到期,我想詢問辦理續貸手續。', a: 4 },\n { q: '最近購買了一棟房子,我想申請房屋貸款。', a: 4 },\n { q: '我想詢問貸款的利率與還款期限。', a: 4 },\n { q: '我的信用記錄不佳但我急需資金,想知道是否有提供特殊條\\n件的貸款方案?', a: 4 },\n { q: '我想要申請一筆個人貸款以應付突發的支出。', a: 4 },\n { q: '我想要了解辦理續貸手續所需的文件和程序。', a: 4 },\n { q: '我要提交房屋貸款的申請資料。', a: 4 },\n { q: '我想了解不同房屋貸款方案的貸款額度和期限。', a: 4 },\n { q: '我的投資計劃需要額外資金,我想了解銀行提供的投資貸款\\n方案。', a: 4 },\n { q: '我想要了解銀行提供的個人信用貸款產品,請問利率及條件\\n是怎樣的?', a: 4 },\n]\n\nsetBackdrop(\"bg_1.png\")\n\nlet bgm = createSound('bgm.mp3', true);\nbgm.setVolume(0.3)\n\nlet chairs = []\nlet lines = []\nlet sitting = []\nlet buttons = []\nlet btns = []\nlet round = 0\nlet index = 0\n\nlet clock = 0\nlet speed = 360\nlet failed = 0\nlet score = 0\n\nlet question = QA[Math.floor(Math.random() * QA.length)]\n\nlet box = createSprite('box.png')\nbox.x += 300\nbox.y += 190\n\nlet info = createSprite('start.png', 'success.png', 'gameover.png')\ninfo.layer = 1000\n\nfor (let i = 0; i \u003c 4; i++) {\n let c = createSprite(\"chair.png\")\n c.x = 150 + i * 130\n c.y = 150\n chairs.push(c)\n}\n\nfor (let i = 0; i \u003c 4; i++) {\n let btn = createSprite(`btn_${i}.png`)\n btn.y = 700\n btn.x = 800 + 200 * i\n btn.on('click', () =\u003e {\n let g = lines[index]\n if (!g) return\n g.type = i + 1\n g.layer = index + 1\n index += 1\n if (question.a === i + 1) {\n g.status = 1\n if (sitting[round]) sitting[round].status = 2\n sitting[round] = g\n round = (round + 1) % 4\n score += 1\n createSound('correct.mp3')\n } else {\n g.status = 3\n failed += 1\n createSound('wrong.mp3')\n }\n nextQuestion()\n })\n btns.push(btn)\n}\n\nfunction nextQuestion() {\n question = QA[Math.floor(Math.random() * QA.length)]\n}\n\nfunction loop() {\n \n if (info.y \u003c 450) info.y += 30\n \n if (!info.hidden) return\n \n clock++\n \n let timer = 120 - Math.floor(clock / 60)\n if (timer === 0 || failed === 3) gameover()\n \n if (timer \u003e 80) {\n if (clock % 240 === 0) createGuest()\n } else if (timer \u003e 40) {\n if (clock % 180 === 0) createGuest()\n } else {\n if (clock % 120 === 0) createGuest()\n } \n\n drawText(timer, 325, 812, 'black', 40)\n drawText(failed, 555, 812, 'black', 40)\n \n let g = lines[index]\n if (g) {\n question.q.split('\\n').forEach((line, idx) =\u003e {\n drawText(line, 700, 560 + idx * 40, 'black', 30) \n }) \n }\n \n lines.filter(g =\u003e g.status === 0).forEach((g, i) =\u003e {\n g.y = 270\n g.x = 900 + i * 80\n })\n \n for (let i = 0; i \u003c 4; i++) {\n let g = sitting[i]\n let c = chairs[i]\n if (g) {\n g.costumeId = g.type\n if (g.x \u003e c.x) g.x -= 10\n else if (g.y \u003e c.y) g.y -= 10\n else g.costumeId = g.type + 4\n }\n }\n \n lines.filter(g =\u003e g.status !== 0).forEach(g =\u003e {\n g.direction = 90 + ((g.x + g.y) % 50 \u003e 25 ? 5 : -5)\n })\n \n lines.filter(g =\u003e g.status === 2).forEach((g, i) =\u003e {\n g.costumeId = g.type\n if (g.y \u003c 450) g.y += 15\n else if (g.x \u003e -100) g.x -= 15\n else g.direction = 90\n })\n \n lines.filter(g =\u003e g.status === 3).forEach((g, i) =\u003e {\n g.costumeId = 9\n if (g.y \u003c 450) g.y += 15\n else if (g.x \u003c 1900) g.x += 15\n })\n \n btns.forEach(btn =\u003e {\n btn.scale = 1\n if (btn.touched(cursor)) {\n btn.scale = 1.05\n if (cursor.isDown) btn.scale = 0.9\n }\n })\n}\n\nfunction createGuest() {\n let s = createSprite('g_0.png', 'g_1.png', 'g_2.png', 'g_3.png', 'g_4.png', 'g_5.png', 'g_6.png', 'g_7.png', 'g_8.png', 'angry.png')\n s.status = 0\n s.engry = 0\n lines.push(s)\n \n s.forever(() =\u003e {\n if (s.status === 0) {\n if (clock % 30 === 0) s.engry += 1\n if (s.engry \u003e= 50 \u0026\u0026 s.status !== 3) {\n s.status = 3\n failed += 1\n createSound('wrong.mp3')\n }\n pen.size = 10\n pen.color = s.engry \u003e 35 ? 'red' : 'black'\n pen.drawLine(s.x - 25, s.y - 180, s.x - 25 + s.engry, s.y - 180) \n }\n })\n}\n\ninfo.on('click', function () {\n if (info.costumeId === 0) {\n info.hidden = true\n createGuest()\n } else {\n stop()\n window.top.postMessage({ event: 'SET_SCORE', data: { score: score * 10 } }, '*');\n }\n})\n\n\nfunction gameover() {\n if (info.costumeId === 0) {\n info.costumeId = failed === 3 ? 2 : 1\n info.hidden = false\n info.y = -900\n bgm.pause() \n }\n}\n\nforever(loop)\n","created_at":"2024-03-07T16:20:14.249+08:00","updated_at":"2024-03-08T16:09:55.653+08:00","name":"小小銀行經營家","language":"javascript","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/707150/fd428af21838cf60d6fd18791dfab0d8.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":52,"hashid":"4y3skqw6v","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":15820487,"file_name":"chair.png","project_id":707150,"asset_id":721795,"created_at":"2024-03-07T16:39:37.628+08:00","updated_at":"2024-03-07T16:39:37.628+08:00"},{"id":15820474,"file_name":"bg_1.png","project_id":707150,"asset_id":725053,"created_at":"2024-03-07T16:36:58.983+08:00","updated_at":"2024-03-07T16:36:58.983+08:00"},{"id":15820475,"file_name":"box.png","project_id":707150,"asset_id":725054,"created_at":"2024-03-07T16:36:58.985+08:00","updated_at":"2024-03-07T16:36:58.985+08:00"},{"id":15820476,"file_name":"btn_0.png","project_id":707150,"asset_id":725055,"created_at":"2024-03-07T16:36:59.401+08:00","updated_at":"2024-03-07T16:36:59.401+08:00"},{"id":15820477,"file_name":"btn_1.png","project_id":707150,"asset_id":725056,"created_at":"2024-03-07T16:36:59.403+08:00","updated_at":"2024-03-07T16:36:59.403+08:00"},{"id":15820577,"file_name":"gameover.png","project_id":707150,"asset_id":723651,"created_at":"2024-03-07T17:52:13.083+08:00","updated_at":"2024-03-07T17:52:13.083+08:00"},{"id":15820478,"file_name":"btn_2.png","project_id":707150,"asset_id":725057,"created_at":"2024-03-07T16:36:59.771+08:00","updated_at":"2024-03-07T16:36:59.771+08:00"},{"id":15820479,"file_name":"btn_3.png","project_id":707150,"asset_id":725058,"created_at":"2024-03-07T16:36:59.773+08:00","updated_at":"2024-03-07T16:36:59.773+08:00"},{"id":15820480,"file_name":"g_0.png","project_id":707150,"asset_id":725059,"created_at":"2024-03-07T16:37:00.414+08:00","updated_at":"2024-03-07T16:37:00.414+08:00"},{"id":15820481,"file_name":"g_1.png","project_id":707150,"asset_id":725060,"created_at":"2024-03-07T16:37:00.416+08:00","updated_at":"2024-03-07T16:37:00.416+08:00"},{"id":15820482,"file_name":"g_2.png","project_id":707150,"asset_id":725061,"created_at":"2024-03-07T16:37:01.237+08:00","updated_at":"2024-03-07T16:37:01.237+08:00"},{"id":15820483,"file_name":"g_3.png","project_id":707150,"asset_id":725062,"created_at":"2024-03-07T16:37:01.239+08:00","updated_at":"2024-03-07T16:37:01.239+08:00"},{"id":15820484,"file_name":"g_4.png","project_id":707150,"asset_id":725063,"created_at":"2024-03-07T16:37:02.915+08:00","updated_at":"2024-03-07T16:37:02.915+08:00"},{"id":15820570,"file_name":"angry.png","project_id":707150,"asset_id":722363,"created_at":"2024-03-07T17:17:55.073+08:00","updated_at":"2024-03-07T17:17:55.073+08:00"},{"id":15820571,"file_name":"g_5.png","project_id":707150,"asset_id":721802,"created_at":"2024-03-07T17:17:55.075+08:00","updated_at":"2024-03-07T17:17:55.075+08:00"},{"id":15820574,"file_name":"g_8.png","project_id":707150,"asset_id":721805,"created_at":"2024-03-07T17:17:55.963+08:00","updated_at":"2024-03-07T17:17:55.963+08:00"},{"id":15820572,"file_name":"g_6.png","project_id":707150,"asset_id":721803,"created_at":"2024-03-07T17:17:55.565+08:00","updated_at":"2024-03-07T17:17:55.565+08:00"},{"id":15820573,"file_name":"g_7.png","project_id":707150,"asset_id":721804,"created_at":"2024-03-07T17:17:55.568+08:00","updated_at":"2024-03-07T17:17:55.568+08:00"},{"id":15820576,"file_name":"success.png","project_id":707150,"asset_id":723653,"created_at":"2024-03-07T17:52:09.707+08:00","updated_at":"2024-03-07T17:52:09.707+08:00"},{"id":15820578,"file_name":"wrong.mp3","project_id":707150,"asset_id":723475,"created_at":"2024-03-07T17:56:49.244+08:00","updated_at":"2024-03-07T17:56:49.244+08:00"},{"id":15820579,"file_name":"correct.mp3","project_id":707150,"asset_id":723474,"created_at":"2024-03-07T17:56:51.963+08:00","updated_at":"2024-03-07T17:56:51.963+08:00"},{"id":15820580,"file_name":"bgm.mp3","project_id":707150,"asset_id":723470,"created_at":"2024-03-07T17:56:59.131+08:00","updated_at":"2024-03-07T17:56:59.131+08:00"},{"id":15822884,"file_name":"start.png","project_id":707150,"asset_id":725111,"created_at":"2024-03-08T12:03:29.378+08:00","updated_at":"2024-03-08T12:03:29.378+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦