@Override
	public void update(GameContainer container, int delta)
			throws SlickException {
		super.update(container, delta);

		Input in = container.getInput();

		if (check("UP")) {
			y += -speed * delta;
			this.setAnim("up");
		}
		if (check("DOWN")) {
			y += speed * delta;
			this.setAnim("down");
		}
		if (check("LEFT")) {
			x += -speed * delta;
			this.setAnim("left");
		}
		if (check("RIGHT")) {
			x += speed * delta;
			this.setAnim("right");
		}
		if (check("ATTACK")) {
			float mouseX = in.getMouseX();
			float mouseY = in.getMouseY();
			world.add(new Bullet(x, y, mouseX, mouseY), World.GAME);
		}

		collide("enemy", x + width / 2, x + height / 2);
	}