update method

void update(
  1. double t
)

Implement this method to update the game state, given that a time t has passed.

Keep the updates as short as possible. t is in seconds, with microseconds precision.

Implementation

void update(double t);