update method
Called once per frame on each display object being rendered.
The delta
argument is the time elapsed since the last update.
Subclasses must call super.update(delta)
at the beginning of their
implementation to ensure the object's correct functionality.
Implementation
@mustCallSuper
void update(double delta) {}