public void update() {
		int xa = 0;
		int ya = 0;
		if (Keyboard.keyPressed(Keyboard.VK_UP)) ya--;
		if (Keyboard.keyPressed(Keyboard.VK_DOWN)) ya++;
		if (Keyboard.keyPressed(Keyboard.VK_LEFT)) xa--;
		if (Keyboard.keyPressed(Keyboard.VK_RIGHT)) xa++;
		if (xa != 0 || ya != 0) move(xa * 3, ya * 3);
		level.setOffset((int) (x - 960.0f / 2.0f), (int) (y - 540.0f / 2.0f));
	}