/** * The update-method will be called every cycle of the game loop. Override this method to give an * object any time driven behaviour. <br> * Note: Always call <i>super.update()</i> first in your overrides, because the default update * does some important actions, like sprite animation. */ public void update() { sprite.updateToNextFrame(); updatePlayerFramePosition(); }