@Override
	public void update(int delta) {
		checkforCollision();

		if (Game.isShooting() && ((lastShoot > 25 * 1000 / SHOOTRATE))) {
			lastShoot = 0;
			SoundEffect.SHOOT1.play();
			Game.addEntity(new Bullet(x - 11, y, -1));
			Game.addEntity(new Bullet(x + 12, y, -1));
		}

		lastShoot += delta;
		lastHurt += delta;
		
		move(delta);
		
		
		if (x < radius)
			x = radius;
		if (x > Game.WIDTH-radius)
			x = Game.WIDTH-radius;
		if (y < radius+Game.HEIGHT/3)
			y = radius+Game.HEIGHT/3;
		if (y > Game.HEIGHT-radius)
			y = Game.HEIGHT-radius;
	}