public void tick() {
        super.tick();

        if (level.game.getKeyboard().left) left = true;
        else left = false;

        if (level.game.getKeyboard().right) right = true;
        else right = false;

        if (level.game.getKeyboard().up || level.game.getKeyboard().space) {
            jump();
        }

        updateAnimation();
    }