Skip to content

Commit

Permalink
Merge pull request #7 from thoniorf/thoniorf-branch
Browse files Browse the repository at this point in the history
Fixed wrong GameOver text placement
  • Loading branch information
thoniorf committed May 27, 2016
2 parents 0f54fd7 + 2c1f58c commit e4ffe5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/it/batteringvalhalla/gamegui/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public void winner(String winner) {

public void gameOver() {
scores.setText("GAME OVER");
java.awt.FontMetrics metrics = GameFrame.instance().getGraphics().getFontMetrics();
scores.setBounds(username.getX() + username.getWidth() + 24, 24, metrics.stringWidth(scores.getText()), 38);
charge.setVisible(false);
}

Expand Down

0 comments on commit e4ffe5a

Please sign in to comment.