Improve pixel units and story transitions

This commit is contained in:
2026-06-22 01:12:22 +09:00
parent 371bc2a263
commit 2bde2ef84e
4 changed files with 139 additions and 58 deletions

View File

@@ -141,7 +141,7 @@ export class BattleScene extends Phaser.Scene {
private drawUnits() {
firstBattleUnits.forEach((unit) => {
const sizeRatio = unit.faction === 'ally' ? 0.9 : 0.84;
const sizeRatio = unit.faction === 'ally' ? 0.98 : 0.92;
const sprite = this.add.image(this.tileCenterX(unit.x), this.tileCenterY(unit.y), unitTexture[unit.id] ?? 'unit-rebel');
sprite.setName(`unit-${unit.id}`);
sprite.setDisplaySize(this.layout.tileSize * sizeRatio, this.layout.tileSize * sizeRatio);