Verify visual asset references

This commit is contained in:
2026-07-05 07:42:54 +09:00
parent 21a64cf634
commit 13565d1ea3
4 changed files with 170 additions and 0 deletions

View File

@@ -34,7 +34,9 @@ export class BootScene extends Phaser.Scene {
});
this.createItemIcon('item-green-dragon-glaive', (graphics) => this.drawPolearmIcon(graphics, 0x5fbf8f, 0xd8b15f));
this.createItemIcon('item-serpent-spear', (graphics) => this.drawSpearIcon(graphics, 0xe0e8ef, 0xb86b55));
this.createItemIcon('item-iron-spear', (graphics) => this.drawSpearIcon(graphics, 0xd8dfe6, 0x6cc5ff));
this.createItemIcon('item-sky-piercer-halberd', (graphics) => this.drawPolearmIcon(graphics, 0xd8dfe6, 0xd95f4f));
this.createItemIcon('item-western-cavalry-spear', (graphics) => this.drawSpearIcon(graphics, 0xe6d3a6, 0xb86b55));
this.createItemIcon('item-white-feather-fan', (graphics) => this.drawFanIcon(graphics, 0xf3f0df, 0x6e8eb8));
this.createItemIcon('item-yellow-turban-saber', (graphics) => this.drawSaberIcon(graphics, 0xd8b15f, 0x9c6b2f));
this.createItemIcon('item-short-bow', (graphics) => this.drawBowIcon(graphics, 0xc58a4c, 0xe8dfca));
@@ -48,6 +50,7 @@ export class BootScene extends Phaser.Scene {
this.createItemIcon('item-peach-charm', (graphics) => this.drawCharmIcon(graphics, 0xf0a6a4, 0xd8b15f));
this.createItemIcon('item-war-manual', (graphics) => this.drawBookIcon(graphics, 0x5b78a0, 0xe8dfca));
this.createItemIcon('item-mountain-guide-scroll', (graphics) => this.drawMapScrollIcon(graphics, 0xcfae72, 0x5f8f65));
this.createItemIcon('item-bravery-token', (graphics) => this.drawTokenIcon(graphics, 0xd8b15f, 0x9b4c3a));
this.createItemIcon('item-grain-pouch', (graphics) => this.drawPouchIcon(graphics, 0xa7794a, 0xe8dfca));
this.createItemIcon('item-yellow-scarf-charm', (graphics) => this.drawCharmIcon(graphics, 0xd8b15f, 0x8b6f2a));
@@ -244,6 +247,25 @@ export class BootScene extends Phaser.Scene {
graphics.strokePath();
}
private drawMapScrollIcon(graphics: Phaser.GameObjects.Graphics, paperColor: number, routeColor: number) {
graphics.fillStyle(0x8d5a3a, 1);
graphics.fillRoundedRect(5, 5, 5, 18, 2);
graphics.fillRoundedRect(18, 5, 5, 18, 2);
graphics.fillStyle(paperColor, 1);
graphics.fillRoundedRect(8, 6, 12, 16, 2);
graphics.lineStyle(1, 0x4e3522, 0.7);
graphics.strokeRoundedRect(8, 6, 12, 16, 2);
graphics.lineStyle(2, routeColor, 1);
graphics.beginPath();
graphics.moveTo(10, 18);
graphics.lineTo(13, 14);
graphics.lineTo(15, 16);
graphics.lineTo(18, 10);
graphics.strokePath();
graphics.fillStyle(0xd8b15f, 1);
graphics.fillCircle(18, 10, 2);
}
private drawTokenIcon(graphics: Phaser.GameObjects.Graphics, baseColor: number, accentColor: number) {
graphics.fillStyle(baseColor, 1);
graphics.fillCircle(14, 14, 9);