package main import ( "github.com/gdamore/tcell/v2" ) const ( WALL = '#' SPACE = '.' PATH_LIMIT = 1000 RENDER = true SHOW_RENDER = false SHOW_PATHS = true HEARING_DISTANCE = 6 ) type Map [][]rune type Paths [][]int type Position struct { X int Y int } type Enemy struct { HP int Pos Position Damage int } type Game struct { Screen tcell.Screen Level Map Paths Paths Player Enemy Status string Width int Height int Enemies map[Position]*Enemy }