Only show level not coordinates

This commit is contained in:
Joachim Lusiardi 2023-11-23 21:18:13 +01:00
parent cf1837a46e
commit dc82e021da
1 changed files with 2 additions and 4 deletions

View File

@ -72,14 +72,12 @@ fn main() -> Result<()> {
height: 25,
};
frame.render_widget(
Paragraph::new(format!("{}\nHealth: {}/{}\nGold: {}\n{}/{}/{}",
Paragraph::new(format!("{}\nHealth: {}/{}\nGold: {}\nLevel: {}",
g.player.get_name(),
g.player.get_life(),
g.player.get_max_life(),
g.player.get_gold(),
g.player.get_position().get_level(),
g.player.get_position().get_x(),
g.player.get_position().get_y()))
g.player.get_position().get_level()))
.white()
.on_blue(),
stats_area,