Skip to content

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
349928465 committed Jun 13, 2024
1 parent c172682 commit eca47cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public void updateCoin(SuperDisplayLabel cl) {
cl.update("Coins: " + totalCoins + " HP: " + totalHP);
cl.setLocation(getWidth() / 2, 20);
}

public void updateCoin() {
coinLabel.update("Coins: " + totalCoins + " HP: " + totalHP);
coinLabel.setLocation(getWidth() / 2, 20);
}

/**
* Loads level from a csv file
Expand Down

0 comments on commit eca47cd

Please sign in to comment.