Cleanup egg-counter-container

This commit is contained in:
Sirz Benjie 2025-05-29 22:37:14 -05:00
parent ff6f9131ae
commit 7cc9070cfb
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -43,14 +43,13 @@ export default class EggCounterContainer extends Phaser.GameObjects.Container {
this.add(this.eggCountWindow); this.add(this.eggCountWindow);
const eggSprite = globalScene.add.sprite(19, 18, "egg", "egg_0"); const eggSprite = globalScene.add.sprite(19, 18, "egg", "egg_0").setScale(0.32);
eggSprite.setScale(0.32);
this.eggCountText = addTextObject(28, 13, `${this.eggCount}`, TextStyle.MESSAGE, { fontSize: "66px" }); this.eggCountText = addTextObject(28, 13, `${this.eggCount}`, TextStyle.MESSAGE, { fontSize: "66px" }).setName(
this.eggCountText.setName("text-egg-count"); "text-egg-count",
);
this.add(eggSprite); this.add([eggSprite, this.eggCountText]);
this.add(this.eggCountText);
} }
/** /**