Create an extendable HealthBar class with Phaser 3
Demo Preview Welcome back to new tutorial everyone, in this post I will create an extendable Healthbar class that you can use for all of your character. Like enemy, player, boss etc. I have used this same version of healthbar class for implementing gotchi, enemy, turkey, gmls health in Aavegotchi Arena The HealthBar class class HealthBar extends Phaser.GameObjects.Graphics { constructor(scene, x, y, max = 1000) { super(scene); this.bar = this; // the Graphics object this.