public void update() {
		int xChange = 0, yChange = 0;
		
		if (anim < 7500) anim++;
		else anim = 0;
		
		if (input.up) yChange--;
		if (input.down) yChange++;
		if (input.left) xChange--;
		if (input.right) xChange++;
		
		if (xChange != 0 || yChange != 0) {
			move (xChange, yChange);
			moving = true;
		} else {
			moving = false;
		}
		
		updateShooting();
	}