<commit_before>package com.ezardlabs.lostsector.objects.hud;

import com.ezardlabs.dethsquare.GameObject;
import com.ezardlabs.dethsquare.GuiRenderer;
import com.ezardlabs.dethsquare.Screen;
import com.ezardlabs.dethsquare.TextureAtlas;
import com.ezardlabs.dethsquare.Vector2;

public class StatusIndicator {
	private TextureAtlas ta;
	private GuiRenderer energy;
	private GuiRenderer health;
	private GuiRenderer shields;

	public void init() {
		GameObject.instantiate(new GameObject("HUD", new GuiRenderer("images/hud/ui.png", 556.25f, 225)), new Vector2((Screen.width - 556.25f * Screen.scale) / Screen.scale, 12));
		ta = new TextureAtlas("images/hud/atlas.png", "images/hud/atlas.txt");
		GameObject.instantiate(new GameObject("Energy Indicator", energy = new GuiRenderer(ta, ta.getSprite("energy_100"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
		GameObject.instantiate(new GameObject("Health Indicator", health = new GuiRenderer(ta, ta.getSprite("health_100"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
		GameObject.instantiate(new GameObject("Shield Indicator", shields = new GuiRenderer(ta, ta.getSprite("shield_2"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
	}

	public void setHealth(int health) {
		this.health.setSprite(ta.getSprite("health_" + health));
	}

	public void setEnergy(int energy) {
		if (energy == 0) {
			this.energy.setSize(0, 0);
		} else {
			this.energy.setSize(200, 200);
			this.energy.setSprite(ta.getSprite("energy_" + energy));
		}
	}
}<commit_msg>Added in a tombstone spawn for when the player dies<commit_after>package com.ezardlabs.lostsector.objects.hud;

import com.ezardlabs.dethsquare.GameObject;
import com.ezardlabs.dethsquare.GuiRenderer;
import com.ezardlabs.dethsquare.Renderer;
import com.ezardlabs.dethsquare.Screen;
import com.ezardlabs.dethsquare.TextureAtlas;
import com.ezardlabs.dethsquare.Vector2;

public class StatusIndicator {
	private TextureAtlas ta;
	private GuiRenderer energy;
	private GuiRenderer health;
	private GuiRenderer shields;

	public void init() {
		GameObject.instantiate(new GameObject("HUD", new GuiRenderer("images/hud/ui.png", 556.25f, 225)), new Vector2((Screen.width - 556.25f * Screen.scale) / Screen.scale, 12));
		ta = new TextureAtlas("images/hud/atlas.png", "images/hud/atlas.txt");
		GameObject.instantiate(new GameObject("Energy Indicator", energy = new GuiRenderer(ta, ta.getSprite("energy_100"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
		GameObject.instantiate(new GameObject("Health Indicator", health = new GuiRenderer(ta, ta.getSprite("health_100"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
		GameObject.instantiate(new GameObject("Shield Indicator", shields = new GuiRenderer(ta, ta.getSprite("shield_2"), 200, 200)), new Vector2((Screen.width - 513f * Screen.scale) / Screen.scale, 25));
	}

	public void setHealth(int health) {
		this.health.setSprite(ta.getSprite("health_" + health));
	}

	public void setEnergy(int energy) {
		if (energy == 0) {
			this.energy.setSize(0, 0);
		} else {
			this.energy.setSize(200, 200);
			this.energy.setSprite(ta.getSprite("energy_" + energy));
		}
	}

	public void spawnGravestone(Vector2 position) {
		GameObject.instantiate(new GameObject("Tombstone", new Renderer(ta, ta.getSprite("gravestone"), 200, 200).setzIndex(5)), position.offset(0, 25));
	}
}
{'fraction_non_alphanumeric': 0.1419594401599543, 'fraction_numerical': 0.04255926878034847, 'mean_word_length': 5.49721706864564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2011178', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1181, 'n_words': 246}