public void render(int xScroll, int yScroll, Screen screen){
		if(attDir == 0) screen.render(x - xScroll, (int) (y - yScroll - 15 - bob) + weaponFrame, 1, 2, 32, 1, SpriteSheet.textures);
		if(attDir == 1) screen.render(x - xScroll + 19 - weaponFrame, (int) (y - yScroll + 6 - bob), 0, 2, 32, 1, SpriteSheet.textures);
		if(attDir == 3) screen.render(x - xScroll - 19 + weaponFrame, (int) (y - yScroll + 6 - bob), 3, 2, 32, 1, SpriteSheet.textures);
		
		screen.render((x) - xScroll, (int) ((y) - yScroll - bob), 2 + frame, 1 + dir, 32, 1, SpriteSheet.mobs);
		
		if(attDir == 2) screen.render(x - xScroll - 1, (int) (y - yScroll + 23 - bob - weaponFrame), 2, 2, 32, 1, SpriteSheet.textures);
		
//		for(int c = 0; c < 4; c++){
//			int xt = ((x - xScroll) + c % 2 * collision_width + collision_w_offset);
//			int yt = ((y - yScroll) + c / 2 * collision_height + collision_h_offset);
//			screen.renderPixel(xt, yt + 1, 0xffffff00);
//			screen.renderPixel(xt, yt - 1, 0xffffff00);
//			screen.renderPixel(xt + 1, yt, 0xffffff00);
//			screen.renderPixel(xt - 1, yt, 0xffffff00);
//		}
		
//		Rect wc = null;
//		
//		if(attDir == 0) wc = new Rect(x + 13, y - 16, 7, 16);
//		if(attDir == 1) wc = new Rect(x + 29, y + 18, 22, 7);
//		if(attDir == 2) wc = new Rect(x + 13, y + 32, 7, 24);
//		if(attDir == 3) wc = new Rect(x - 19, y + 18, 25, 7);
//		
//		if(wc != null){
//			for(int ya = wc.getY(); ya < wc.getY() + wc.getHeight(); ya++){
//				for(int xa = wc.getX(); xa < wc.getX() + wc.getWidth(); xa++){
//					screen.renderPixelTrans(xa - xScroll, ya - yScroll, 0xff00ff00, 0.5f);
//				}
//			}	
//		}
		
		for(int ya = 0; ya < 3; ya++){
			for(int xa = 0; xa < convertEnergy(); xa++){
				screen.renderPixel(xa + x - xScroll, ya + y - yScroll, 0xffD75ADB);
			}
		}
		
		if(health < 100){
			for(int ya = 0; ya < 3; ya++){
				for(int xa = 0; xa < 32; xa++){
					screen.renderPixel(x + xa - xScroll, 32 + y + ya- yScroll, 0xffff0000);
				}
			}
			
			for(int ya = 0; ya < 3; ya++){
				for(int xa = 0; xa < convertHealth(); xa++){
					screen.renderPixel(x + xa - xScroll, 32 + y + ya- yScroll, 0xff00ff00);
				}
			}
		}

	}