Skip to content

Commit

Permalink
deploy: b864482
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Nov 15, 2023
1 parent a2eef68 commit 827e7de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/beatmaps/beatmaps.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
{
"title": "Daylight Fantasy",
"artist": "ろんぽう/うどかつ",
"noter": "",
"noter": "chiyoda",
"folder": "ろんぽう&うどかつ - Daylight Fantasy",
"jacket": "hakuchu.png",
"preview": "preview.wav",
Expand Down
2 changes: 1 addition & 1 deletion bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"TitleScene\": () => (/* binding */ TitleScene)\n/* harmony export */ });\n/* harmony import */ var _class_DebugGUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../class/DebugGUI */ \"./src/class/DebugGUI.ts\");\n/* harmony import */ var _lib_retryFetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/retryFetch */ \"./src/lib/retryFetch.ts\");\n\n\nclass TitleScene extends Phaser.Scene {\n debugGUI;\n startText;\n backgroundCamera;\n particleEmitter;\n constructor() {\n super(\"title\");\n }\n init() {\n this.debugGUI = new _class_DebugGUI__WEBPACK_IMPORTED_MODULE_0__.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.shader(\"background\", width / 2 + 1280, height / 2 + 720, 1280, 720).setDepth(-5);\n // @ts-expect-error\n this.plugins.get(\"rexKawaseBlurPipeline\").add(this.backgroundCamera, {\n blur: 8,\n quality: 8,\n });\n this.particleEmitter = this.add\n .particles(0, 0, \"particle-yellow\", {\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 emitting: true,\n })\n .setDepth(20);\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:${\"20231116083615\"}`, {\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 // 日本語のフォントがうまく読み込まれないので、使う文字を予め強制的に読み込んでおく\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.getAllUserNames();\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.particleX = this.input.x;\n this.particleEmitter.particleY = 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 async getAllUserNames() {\n const usersResponse = await (0,_lib_retryFetch__WEBPACK_IMPORTED_MODULE_1__.retryFetch)(new URL(\"/users/\", \"https://ricora-beats-ir.fly.dev/\").toString(), {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (!usersResponse.ok) {\n return;\n }\n const users = await usersResponse.json();\n let text = \"\";\n for (const user of users) {\n text += `${user.screen_name} `;\n }\n this.add\n .text(0, 0, text, {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setVisible(false);\n }\n}\n\n\n//# sourceURL=webpack://ricora-beats/./src/scene/TitleScene.ts?");
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"TitleScene\": () => (/* binding */ TitleScene)\n/* harmony export */ });\n/* harmony import */ var _class_DebugGUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../class/DebugGUI */ \"./src/class/DebugGUI.ts\");\n/* harmony import */ var _lib_retryFetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/retryFetch */ \"./src/lib/retryFetch.ts\");\n\n\nclass TitleScene extends Phaser.Scene {\n debugGUI;\n startText;\n backgroundCamera;\n particleEmitter;\n constructor() {\n super(\"title\");\n }\n init() {\n this.debugGUI = new _class_DebugGUI__WEBPACK_IMPORTED_MODULE_0__.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.shader(\"background\", width / 2 + 1280, height / 2 + 720, 1280, 720).setDepth(-5);\n // @ts-expect-error\n this.plugins.get(\"rexKawaseBlurPipeline\").add(this.backgroundCamera, {\n blur: 8,\n quality: 8,\n });\n this.particleEmitter = this.add\n .particles(0, 0, \"particle-yellow\", {\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 emitting: true,\n })\n .setDepth(20);\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:${\"20231116084043\"}`, {\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 // 日本語のフォントがうまく読み込まれないので、使う文字を予め強制的に読み込んでおく\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.getAllUserNames();\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.particleX = this.input.x;\n this.particleEmitter.particleY = 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 async getAllUserNames() {\n const usersResponse = await (0,_lib_retryFetch__WEBPACK_IMPORTED_MODULE_1__.retryFetch)(new URL(\"/users/\", \"https://ricora-beats-ir.fly.dev/\").toString(), {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (!usersResponse.ok) {\n return;\n }\n const users = await usersResponse.json();\n let text = \"\";\n for (const user of users) {\n text += `${user.screen_name} `;\n }\n this.add\n .text(0, 0, text, {\n fontFamily: \"Noto Sans JP\",\n fontSize: \"40px\",\n color: \"#fafafa\",\n align: \"center\",\n })\n .setVisible(false);\n }\n}\n\n\n//# sourceURL=webpack://ricora-beats/./src/scene/TitleScene.ts?");

/***/ }),

Expand Down

0 comments on commit 827e7de

Please sign in to comment.