fix: remove unused HUD.java

This commit is contained in:
Laureηt 2021-04-09 15:10:58 +02:00
parent afb5c05a60
commit c56c5e92df

View file

@ -1,52 +0,0 @@
package sagittarius.view;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Disposable;
class HUD implements Disposable {
// ---------- ATTRIBUTEs ----------
private int frameRate;
private BitmapFont font = new BitmapFont();
private Batch batch = new SpriteBatch();
// ---------- METHODs ----------
void update() {
frameRate = Gdx.graphics.getFramesPerSecond();
}
void render() {
batch.setProjectionMatrix(GameScreen.camera.projection);
batch.setTransformMatrix(GameScreen.camera.view);
batch.begin();
// framerate
font.draw(batch, frameRate + " fps", 3, GameScreen.viewport.getWorldHeight() - 3);
// font.draw(batch, "x_r = " + (int) SagittariusGame.screenCursor.x + ", y_r = " + (int) SagittariusGame.screenCursor.y,
// GameScreen.viewport.getWorldWidth() + 5,
// GameScreen.viewport.getWorldHeight() + 5);
// font.draw(batch, "x_g = " + (int) SagittariusGame.worldCursor.x + ", y_g = " + (int) SagittariusGame.worldCursor.y,
// GameScreen.viewport.getWorldWidth() + 5,
// GameScreen.viewport.getWorldHeight() + 20);
batch.end();
}
@Override
public void dispose() {
batch.dispose();
font.dispose();
}
public void resize() {
// TODO
}
}