From ff058d6ac82f04a24613de73e0974e7d2feb43c3 Mon Sep 17 00:00:00 2001 From: 3w36zj6 <3w36zj6@users.noreply.github.com> Date: Tue, 7 Nov 2023 00:04:40 +0900 Subject: [PATCH] deploy: 58fe0ffbfdef5754be49052504840ecf9308aa6a --- bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.js b/bundle.js index 9d0a6ce..e1e2dd9 100644 --- a/bundle.js +++ b/bundle.js @@ -1365,7 +1365,7 @@ eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _argument /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TitleScene = void 0;\nconst DebugGUI_1 = __webpack_require__(/*! ../class/DebugGUI */ \"./src/class/DebugGUI.ts\");\nclass TitleScene extends Phaser.Scene {\n constructor() {\n super(\"title\");\n }\n init() {\n this.debugGUI = new DebugGUI_1.DebugGUI(this);\n this.events.on(Phaser.Scenes.Events.TRANSITION_OUT, () => {\n this.debugGUI.destroy();\n });\n }\n preload() {\n const musicList = this.cache.json.get(\"music-list\");\n for (const music of musicList) {\n if (music.jacket !== undefined) {\n this.load.image(`jacket-${music.folder}/${music.jacket}`, `./assets/beatmaps/${music.folder}/${music.jacket}`);\n }\n if (music.preview !== undefined) {\n this.load.audio(`preview-${music.folder}/${music.preview}`, `./assets/beatmaps/${music.folder}/${music.preview}`);\n }\n }\n }\n create() {\n const { width, height } = this.game.canvas;\n this.backgroundCamera = this.cameras.add(0, 0, 1280, 720);\n this.backgroundCamera.setScroll(1280, 720);\n this.cameras.add(0, 0, 1280, 720, true);\n this.add\n .shader(\"background\", width / 2 + 1280, height / 2 + 720, 1280, 720)\n .setDepth(-5);\n // @ts-expect-error\n this.plugins.get(\"rexKawaseBlurPipeline\").add(this.backgroundCamera, {\n blur: 8,\n quality: 8,\n });\n const particleYellow = this.add.particles(\"particle-yellow\").setDepth(20);\n this.particleEmitter = particleYellow.createEmitter({\n x: -1280,\n y: 0,\n angle: { min: 0, max: 360 },\n speed: 60,\n emitZone: {\n type: \"random\",\n source: new Phaser.Geom.Circle(0, 0, 6),\n quantity: 12,\n yoyo: false,\n },\n scale: { start: 0.08, end: 0 },\n lifespan: { min: 300, max: 1000 },\n quantity: 0.6,\n blendMode: \"ADD\",\n on: true,\n });\n this.add.image(640, 260, \"logo\").setScale(0.9);\n const fullScreenButton = this.add\n .image(1275, 5, \"icon-maximize\")\n .setOrigin(1, 0)\n .setAlpha(0.5)\n .setDepth(1)\n .setInteractive({\n useHandCursor: true,\n })\n .on(\"pointerdown\", () => {\n if (this.scale.isFullscreen) {\n fullScreenButton.setTexture(\"icon-maximize\");\n this.scale.stopFullscreen();\n }\n else {\n fullScreenButton.setTexture(\"icon-minimize\");\n this.scale.startFullscreen();\n }\n })\n .on(\"pointerover\", () => {\n fullScreenButton.setAlpha(1);\n })\n .on(\"pointerout\", () => {\n fullScreenButton.setAlpha(0.5);\n });\n this.startText = this.add\n .text(640, 550, \"touch to start\", {\n fontFamily: \"Bungee\",\n fontSize: \"80px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setOrigin(0.5)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(1280, 720, \"© RICORA\", {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setStroke(\"#000000\", 8)\n .setOrigin(1, 1)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(0, 0, `BUILD:${\"20231106233312\"}`, {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setStroke(\"#000000\", 6)\n .setOrigin(0, 0)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(1280, 0, \"あ難易度使用数変更譜面現在設定企画立案楽曲\", {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setVisible(false);\n this.add\n .zone(640, 720, 1280, 640)\n .setOrigin(0.5, 1)\n .setInteractive({\n useHandCursor: true,\n })\n .once(\"pointerdown\", () => {\n this.sound.play(\"decide\");\n this.cameras.main.fadeOut(800);\n });\n this.cameras.main.once(Phaser.Cameras.Scene2D.Events.FADE_OUT_COMPLETE, () => {\n this.scene.start(\"select\");\n });\n this.cameras.main.fadeIn(500);\n if (navigator.userAgent.match(/iPhone|Android.+Mobile/) &&\n !window.matchMedia(\"(display-mode: fullscreen)\").matches) {\n alert(\"当サイトはPWAに対応しております。\\nWebブラウザのメニューからホーム画面に追加をすることで、フルスクリーンでさらに快適に楽しむことができます。\");\n }\n }\n update(time, dt) {\n this.particleEmitter.setPosition(this.input.x, this.input.y);\n this.startText.setAlpha(0.5 + 0.5 * 0.5 * (0.25 * Math.sin((time * 2 * Math.PI) / 1000) + 1));\n }\n}\nexports.TitleScene = TitleScene;\n\n\n//# sourceURL=webpack://ricora-beats/./src/scene/TitleScene.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.TitleScene = void 0;\nconst DebugGUI_1 = __webpack_require__(/*! ../class/DebugGUI */ \"./src/class/DebugGUI.ts\");\nclass TitleScene extends Phaser.Scene {\n constructor() {\n super(\"title\");\n }\n init() {\n this.debugGUI = new DebugGUI_1.DebugGUI(this);\n this.events.on(Phaser.Scenes.Events.TRANSITION_OUT, () => {\n this.debugGUI.destroy();\n });\n }\n preload() {\n const musicList = this.cache.json.get(\"music-list\");\n for (const music of musicList) {\n if (music.jacket !== undefined) {\n this.load.image(`jacket-${music.folder}/${music.jacket}`, `./assets/beatmaps/${music.folder}/${music.jacket}`);\n }\n if (music.preview !== undefined) {\n this.load.audio(`preview-${music.folder}/${music.preview}`, `./assets/beatmaps/${music.folder}/${music.preview}`);\n }\n }\n }\n create() {\n const { width, height } = this.game.canvas;\n this.backgroundCamera = this.cameras.add(0, 0, 1280, 720);\n this.backgroundCamera.setScroll(1280, 720);\n this.cameras.add(0, 0, 1280, 720, true);\n this.add\n .shader(\"background\", width / 2 + 1280, height / 2 + 720, 1280, 720)\n .setDepth(-5);\n // @ts-expect-error\n this.plugins.get(\"rexKawaseBlurPipeline\").add(this.backgroundCamera, {\n blur: 8,\n quality: 8,\n });\n const particleYellow = this.add.particles(\"particle-yellow\").setDepth(20);\n this.particleEmitter = particleYellow.createEmitter({\n x: -1280,\n y: 0,\n angle: { min: 0, max: 360 },\n speed: 60,\n emitZone: {\n type: \"random\",\n source: new Phaser.Geom.Circle(0, 0, 6),\n quantity: 12,\n yoyo: false,\n },\n scale: { start: 0.08, end: 0 },\n lifespan: { min: 300, max: 1000 },\n quantity: 0.6,\n blendMode: \"ADD\",\n on: true,\n });\n this.add.image(640, 260, \"logo\").setScale(0.9);\n const fullScreenButton = this.add\n .image(1275, 5, \"icon-maximize\")\n .setOrigin(1, 0)\n .setAlpha(0.5)\n .setDepth(1)\n .setInteractive({\n useHandCursor: true,\n })\n .on(\"pointerdown\", () => {\n if (this.scale.isFullscreen) {\n fullScreenButton.setTexture(\"icon-maximize\");\n this.scale.stopFullscreen();\n }\n else {\n fullScreenButton.setTexture(\"icon-minimize\");\n this.scale.startFullscreen();\n }\n })\n .on(\"pointerover\", () => {\n fullScreenButton.setAlpha(1);\n })\n .on(\"pointerout\", () => {\n fullScreenButton.setAlpha(0.5);\n });\n this.startText = this.add\n .text(640, 550, \"touch to start\", {\n fontFamily: \"Bungee\",\n fontSize: \"80px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setOrigin(0.5)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(1280, 720, \"© RICORA\", {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setStroke(\"#000000\", 8)\n .setOrigin(1, 1)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(0, 0, `BUILD:${\"20231107000418\"}`, {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setStroke(\"#000000\", 6)\n .setOrigin(0, 0)\n .setDepth(10)\n .setAlpha(1)\n .setScale(0.5);\n this.add\n .text(1280, 0, \"あ難易度使用数変更譜面現在設定企画立案楽曲\", {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setVisible(false);\n this.add\n .zone(640, 720, 1280, 640)\n .setOrigin(0.5, 1)\n .setInteractive({\n useHandCursor: true,\n })\n .once(\"pointerdown\", () => {\n this.sound.play(\"decide\");\n this.cameras.main.fadeOut(800);\n });\n this.cameras.main.once(Phaser.Cameras.Scene2D.Events.FADE_OUT_COMPLETE, () => {\n this.scene.start(\"select\");\n });\n this.cameras.main.fadeIn(500);\n if (navigator.userAgent.match(/iPhone|Android.+Mobile/) &&\n !window.matchMedia(\"(display-mode: fullscreen)\").matches) {\n alert(\"当サイトはPWAに対応しております。\\nWebブラウザのメニューからホーム画面に追加をすることで、フルスクリーンでさらに快適に楽しむことができます。\");\n }\n }\n update(time, dt) {\n this.particleEmitter.setPosition(this.input.x, this.input.y);\n this.startText.setAlpha(0.5 + 0.5 * 0.5 * (0.25 * Math.sin((time * 2 * Math.PI) / 1000) + 1));\n }\n}\nexports.TitleScene = TitleScene;\n\n\n//# sourceURL=webpack://ricora-beats/./src/scene/TitleScene.ts?"); /***/ }),