BombTowerModel
Specific model implementation for the Bomb Tower.
BombTowerModel
Extends TowerModel.
Methods
constructor()
ts
function constructor(): voidInitializes the model by calling the super({ name: 'bomb-tower' }).
update()
ts
function update(dt: number, user: any): voidUpdates the model every frame. If user.firingTick is present, animates the tower head by scaling it based on the time since it fired. The animation lasts for 500ms with an amplitude of 0.6. Calls super.update(dt, user).