public void update() {

		int xa = 0, ya = 0;

		anim++;
		if (anim > 999) anim = 0;

		if (input.up) ya--;
		if (input.down) ya++;
		if (input.right) xa++;
		if (input.left) xa--;

		if (xa != 0 || ya != 0) {
			move(xa, ya);
			walking = true;
		} else {
			walking = false;
		}

		clear();
		updateShooting();

	}