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 ROOM_SIZE=4 ) type Map [][]rune type Paths [][]int type Position struct { X int Y int } type Thing struct { HP int Pos Position Damage int Healing int } type Room struct { X int Y int Width int Height int } type Game struct { Screen tcell.Screen Level Map Paths Paths Player Thing Status string Width int Height int DeadArea Room Enemies map[Position]*Thing Loot map[Position]*Thing Rooms []Room DeadEnds []Position }