Skip to content

Commit

Permalink
Finally Fix Ingame Score Text
Browse files Browse the repository at this point in the history
  • Loading branch information
manolol1 committed Jan 15, 2024
1 parent cfde45b commit 6852f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/xyz/manolol/squarecollector/TextWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void drawTextCenterXY(String text, int fontSize, float yOffset, float r,
public void DrawTextTopRightXY(String text, int fontSize, float xOffset, float yOffset) {
BitmapFont font = getFont(fontSize);
layout.setText(font, text);
float x = (viewport.getWorldWidth() - xOffset) - layout.height;
float x = (viewport.getWorldWidth() - xOffset) - layout.width;
float y = (viewport.getWorldHeight() - yOffset) - layout.height;
font.draw(batch, layout, x, y);
}
Expand Down

0 comments on commit 6852f24

Please sign in to comment.