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 - } - -}