From 06daab628e8e649ff3ae5ab07a772e8c121a27ff Mon Sep 17 00:00:00 2001 From: Wickedness Date: Thu, 9 Jul 2026 14:49:01 +0900 Subject: [PATCH] Render equipment icons at higher resolution --- src/game/scenes/BootScene.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/scenes/BootScene.ts b/src/game/scenes/BootScene.ts index be602a2..f98898d 100644 --- a/src/game/scenes/BootScene.ts +++ b/src/game/scenes/BootScene.ts @@ -1,6 +1,9 @@ import Phaser from 'phaser'; import titleBackgroundUrl from '../../assets/images/taoyuan-oath-title.png'; +const itemIconSourceSize = 28; +const itemIconTextureSize = 64; + export class BootScene extends Phaser.Scene { constructor() { super('BootScene'); @@ -64,10 +67,11 @@ export class BootScene extends Phaser.Scene { const graphics = this.make.graphics({ x: 0, y: 0 }); graphics.fillStyle(0x101820, 0); - graphics.fillRect(0, 0, 28, 28); + graphics.fillRect(0, 0, itemIconTextureSize, itemIconTextureSize); + graphics.scaleCanvas(itemIconTextureSize / itemIconSourceSize, itemIconTextureSize / itemIconSourceSize); graphics.lineStyle(1, 0x05070a, 0.7); draw(graphics); - graphics.generateTexture(key, 28, 28); + graphics.generateTexture(key, itemIconTextureSize, itemIconTextureSize); graphics.destroy(); }