Skip to content

Commit

Permalink
client/game/hud: Fixed the Win/Lose messages display
Browse files Browse the repository at this point in the history
When changed it to the 'ebitenui' logic, this was done incorrectly
  • Loading branch information
xescugc committed Jun 13, 2024
1 parent 2acfcea commit 95209a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/game/hud.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,7 @@ func (hs *HUDStore) Draw(screen *ebiten.Image) {
if cp.Lives == 0 {
hs.winLoseTextW.Label = "YOU LOST"
hs.winLoseTextW.GetWidget().Visibility = widget.Visibility_Show
} else if hs.winLoseTextW.GetWidget().Visibility != widget.Visibility_Hide {
hs.winLoseTextW.Label = ""
hs.winLoseTextW.GetWidget().Visibility = widget.Visibility_Hide
}

if cp.Winner {
} else if cp.Winner {
hs.winLoseTextW.Label = "YOU WON!"
hs.winLoseTextW.GetWidget().Visibility = widget.Visibility_Show
} else if hs.winLoseTextW.GetWidget().Visibility != widget.Visibility_Hide {
Expand Down
Binary file modified server/assets/wasm/maze-wars.wasm
Binary file not shown.

0 comments on commit 95209a2

Please sign in to comment.