Constructor
new hudHealth(game, player)
Create the accuracy hud component.
Parameters:
Name | Type | Description |
---|---|---|
game |
SpaceInvaders | The current game. |
player |
PlayerShip | The current player ship. |
- Source:
Extends
Methods
update()
Update the health display, draw a heart for each 5 hit points.
- Overrides:
- Source: