Game Development Reference
In-Depth Information
What just happened?
With these methods we control gameplay. We start the game with default values through
resetGame() , and we stop all actions with stopGame() .
Already implemented in the class is the method that makes the game more difficult as time
progresses. If you take a look at the method ( increaseDifficulty ) you will see that
it reduces the interval between meteors and reduces the time it takes for meteors to reach
the ground.
All we need now is the update method to run the countdowns and check for collisions.
Search WWH ::




Custom Search