public void setImage(int frame) {
		if (frame == def.Frame.UP) {
			imgx = 16;
			imgy = 0;
			imgx2 = imgx + w;
			imgy2 = imgy + h;
		} else if (frame == def.Frame.DOWN) {
			imgx = 24;
			imgy = 0;
			imgx2 = imgx + w;
			imgy2 = imgy + h;
		} else if (frame == def.Frame.LEFT) {
			imgx = 8;
			imgy = 0;
			imgx2 = imgx + w;
			imgy2 = imgy + h;
		} else if (frame == def.Frame.RIGHT) {
			imgx = 0;
			imgy = 0;
			imgx2 = imgx + w;
			imgy2 = imgy + h;
		} else {

		}
	}