From ac8f0d2736f8cdd12c407f11aa286392f0be0ea7 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Mon, 6 Oct 2025 10:58:35 -0400 Subject: [PATCH] More diff prettying. --- 01_the_screen/ui.go | 4 ---- 03_pathing_enemies/game.go | 2 -- 04_combat/game.go | 4 +--- 04_combat/movement.go | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/01_the_screen/ui.go b/01_the_screen/ui.go index 198ccb5..873181d 100644 --- a/01_the_screen/ui.go +++ b/01_the_screen/ui.go @@ -66,13 +66,9 @@ func (game *Game) Render() { if !RENDER { return } game.Screen.Clear() - game.DrawMap() - game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow) - game.DrawStatus() - game.Screen.Show() } diff --git a/03_pathing_enemies/game.go b/03_pathing_enemies/game.go index 5eb4dff..3e2633c 100644 --- a/03_pathing_enemies/game.go +++ b/03_pathing_enemies/game.go @@ -11,10 +11,8 @@ func NewGame(width int, height int) (*Game) { game.Width = width game.Height = height game.Enemies = make(map[Position]*Enemy) - game.Level = make(Map, height, height) game.Paths = make(Paths, height, height) - game.Player = Enemy{20, Position{1,1}, 4} return &game diff --git a/04_combat/game.go b/04_combat/game.go index 5eb4dff..3cf5d76 100644 --- a/04_combat/game.go +++ b/04_combat/game.go @@ -11,11 +11,9 @@ func NewGame(width int, height int) (*Game) { game.Width = width game.Height = height game.Enemies = make(map[Position]*Enemy) - game.Level = make(Map, height, height) - game.Paths = make(Paths, height, height) - game.Player = Enemy{20, Position{1,1}, 4} + game.Paths = make(Paths, height, height) return &game } diff --git a/04_combat/movement.go b/04_combat/movement.go index c17c251..367caf3 100644 --- a/04_combat/movement.go +++ b/04_combat/movement.go @@ -1,6 +1,5 @@ package main - func (game *Game) MoveEnemy(from Position, to Position) { enemy, ok := game.Enemies[from] if !ok { dbg.Fatal("no enemy at", from, "wtf") }