public HUD(Main main, OrthographicCamera cam) {
		this.cam = cam;
		this.main = main;
		this.character = main.character;
		
		//font = TextureRegion.split(Game.res.getTexture("text"), 8, 11)[0];
		//font = TextureRegion.split(Game.res.getTexture("text2"), 7, 12)[0];
		font = TextureRegion.split(Game.res.getTexture("text3"), 7, 9 )[0];
		font2 = TextureRegion.split(Game.res.getTexture("text3"), 7, 9 )[1];
		font4 = TextureRegion.split(Game.res.getTexture("text4"), 14, 20 )[0];
		textures = Game.res.getTexture("hudTextures");
		
		hearts = new TextureRegion[9];
		for (int i = 0; i < hearts.length; i++)
			hearts[i] = new TextureRegion(textures, i * 19, 78, 19, 19);
		
		cubeFrames = new TextureRegion[10];
		for (int i = 0; i < cubeFrames.length; i++)
			cubeFrames[i] = new TextureRegion(textures, i * 11 + 192, 78, 11, 11);
		cube = new Animation(null);
		cube.initFrames(cubeFrames, .09f, false);
		
		btnHighFrames = new TextureRegion[9];
		for (int i = 0; i < btnHighFrames.length; i++)
			btnHighFrames[i] = new TextureRegion(textures, 0, i * 18 + 361, 238, 11);
		buttonHigh = new Animation(null);
		buttonHigh.initFrames(btnHighFrames, .1f, false);
		
		inputBGLeft = new TextureRegion(textures, 302, 78, 6, 18);
		inputBGMid = new TextureRegion(textures, 308, 78, 1, 18);
		inputBGRight = new TextureRegion(textures, 309, 78, 6, 18);
		
		Texture emote = Game.res.getTexture("emotion");
		if (emote != null) emotions = TextureRegion.split(emote, 64, 64)[0];
		
		cash = new TextureRegion(textures, 9 * 19, 78, 21, 19);
//		faceHud = new TextureRegion(textures, 0, 0, 72, 78);
//		textHud = new TextureRegion(textures, 72, 0, 361, 78);
		textHud = new TextureRegion(textures, 0, 0, 433, 78);
//		pauseHud = new TextureRegion(textures, 96, 166, 240, 139);
		hide();
	}