From c56c5e92dfbebf37cad7b662ef5c7bac395da3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 9 Apr 2021 15:10:58 +0200 Subject: [PATCH] fix: remove unused HUD.java --- core/src/sagittarius/view/HUD.java | 52 ------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 core/src/sagittarius/view/HUD.java diff --git a/core/src/sagittarius/view/HUD.java b/core/src/sagittarius/view/HUD.java deleted file mode 100644 index 146631a..0000000 --- a/core/src/sagittarius/view/HUD.java +++ /dev/null @@ -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 - } - -}