public void render(Graphics g, Camera camera) {

		xSlot = 4;
		if (dir == 0)
			ySlot = 0;
		if (dir == 1)
			ySlot = 1;
		if (dir == 2)
			ySlot = 2;
		if (dir == 3)
			ySlot = 3;
		if (walking) {

			xSlot = 3;
			if (anim > 20) {
				xSlot = 4;
			}
			if (anim > 40) {
				xSlot = 5;
			}

		}
		level.screen.renderplayer(xSlot, ySlot, x - 7, y - 8, g, 1);
		if (hit) {
			level.screen.damagedisplay(OverHead, x - w, y - h - 3, g, negative);
		}
	}