Class: Trophies

Trophies(game)

The Trophies system wrapper / factory

Constructor

new Trophies(game)

Make a new trophy system and setup the trophies.
Parameters:
Name Type Description
game SpaceInvaders The current game instance.
Properties:
Name Type Description
game SpaceInvaders The current game instance
trophies array Array of trophies for this game
Author:
Source:

Methods

reset()

Reset the trophies
Source:
To Do:
  • Something is meant to happen here?

update()

Update loop issues update to each trophy
Source: