Constructor
new hudAccuracy(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() → {boolean}
Update the content of the accuracy DOM element
.
- Overrides:
- Source:
Returns:
Success or failure.
- Type
- boolean