Skip to content

Commit f7181cd

Browse files
committed
It looks pretty close to centered now...
1 parent 43b29e1 commit f7181cd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

SquidSquad/DawnSquad/core/src/main/java/com/github/tommyettinger/DawnSquad.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,8 @@ public void render() {
772772
guiViewport.apply(false);
773773
batch.setProjectionMatrix(guiViewport.getCamera().combined);
774774
batch.begin();
775-
float wide = guiViewport.getWorldWidth(),
776-
x = playerSprite.getX() - wide * 0.4f,
777-
y = playerSprite.getY();
778-
font.drawGlyphs(batch, gameOver, x, y + 2 * font.cellHeight, Align.left);
775+
float x = playerSprite.getX(), y = playerSprite.getY();
776+
font.drawGlyphs(batch, gameOver, x, y + 2 * font.cellHeight, Align.center);
779777
// font.draw(batch, "[RED]YOUR CRAWL IS OVER!", x, y + 2 * font.getLineHeight(), wide, Align.center, true);
780778
// font.draw(batch, "[GRAY]A monster sniffs your corpse and says,", x, y + font.getLineHeight(), wide, Align.center, true);
781779
// font.draw(batch, "[FOREST]" + lang, x, y, wide, Align.center, true);

SquidSquad/DawnSquad/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ squidSquadVersion=d6297d3008
2020
#squidSquadVersion=d3224c1abe
2121
#squidSquadVersion=4.0.0-beta1
2222
#freetypeGwtVersion=1.9.10.1
23-
textratypistVersion=eceab53c8d
23+
textratypistVersion=0a447d0906
2424
projectVersion=0.0.1

0 commit comments

Comments
 (0)