diff --git a/02_mazes_and_enemies/ui.go b/02_mazes_and_enemies/ui.go index 2a72e20..9c5f7d0 100644 --- a/02_mazes_and_enemies/ui.go +++ b/02_mazes_and_enemies/ui.go @@ -66,9 +66,7 @@ func (game *Game) Render() { if !RENDER { return } game.Screen.Clear() - game.DrawMap() - game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) for pos, _ := range game.Enemies { @@ -76,7 +74,6 @@ func (game *Game) Render() { } game.DrawStatus() - game.Screen.Show() } diff --git a/03_pathing_enemies/ui.go b/03_pathing_enemies/ui.go index 4eeb0d2..f2d8777 100644 --- a/03_pathing_enemies/ui.go +++ b/03_pathing_enemies/ui.go @@ -66,21 +66,18 @@ func (game *Game) Render() { if !RENDER { return } game.Screen.Clear() - game.DrawMap() + game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) if SHOW_PATHS { game.DrawPaths() } - game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) - for pos, _ := range game.Enemies { game.DrawEntity('G', pos, tcell.ColorRed) } game.DrawStatus() - game.Screen.Show() } diff --git a/04_combat/ui.go b/04_combat/ui.go index 4eeb0d2..f2d8777 100644 --- a/04_combat/ui.go +++ b/04_combat/ui.go @@ -66,21 +66,18 @@ func (game *Game) Render() { if !RENDER { return } game.Screen.Clear() - game.DrawMap() + game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) if SHOW_PATHS { game.DrawPaths() } - game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) - for pos, _ := range game.Enemies { game.DrawEntity('G', pos, tcell.ColorRed) } game.DrawStatus() - game.Screen.Show() }