Constructor
new hudScore(game)
Create a new score HUD display
Parameters:
Name | Type | Description |
---|---|---|
game |
SpaceInvaders | The current game instance |
- Source:
Extends
Methods
update() → {boolean}
Update the content of the score DOM element
.
- Overrides:
- Source:
Returns:
Success or failure.
- Type
- boolean