A Go version of the https://lcthw.dev/learn-code-the-hard-way/curseyou-python-rogue that makes a tiny Rogue in Go.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
360 B
12 lines
360 B
--- 01_the_screen/ui.go 2025-10-06 10:55:34.357039400 -0400
|
|
+++ 02_mazes_and_enemies/ui.go 2025-10-06 11:18:20.691714300 -0400
|
|
@@ -69,4 +69,9 @@
|
|
game.DrawMap()
|
|
game.DrawEntity('@', game.Player.Pos, tcell.ColorYellow)
|
|
+
|
|
+ for pos, _ := range game.Enemies {
|
|
+ game.DrawEntity('G', pos, tcell.ColorRed)
|
|
+ }
|
|
+
|
|
game.DrawStatus()
|
|
game.Screen.Show()
|
|
|