Class: hudEnemy

hudEnemy(game, player, enemyFleet)

Show enemy fleet / total enemies on screen.

Constructor

new hudEnemy(game, player, enemyFleet)

Create the enemy fleet totals hud component.
Parameters:
Name Type Description
game SpaceInvaders The current game.
player PlayerShip The current player ship.
enemyFleet EnemyFleet The enemy fleet of ships.
Author:
Source:

Extends

Methods

update() → {boolean}

Update the content of the enemy DOM element
.
Overrides:
Source:
Returns:
Success or failure.
Type
boolean