@Override
	public void update(final int delta) {
		if (Controls.getInstance().wasF12()) {
			world.finish();
		}
		if (Controls.getInstance().wasR() || !player.isAlive()) {
			newLevel(false);
		}

		titelTimeleft -= delta;


		world.update(delta);
		player.update(delta);

		if (world.isFinished() && !levelFinished) {
			levelFinished = true;
			levelBlendTimeleft = MAX_LEVEL_BLEND;
			blend.reset(level);
		}

		levelBlendTimeleft -= delta;
		if (levelFinished && levelBlendTimeleft < 0) {
			newLevel(true);
		}

		if (isWin)
			winTextTimeLeft -= delta;
	}