Source File: curse-you-go-rogue/01_the_screen/data.go

package main

import (
  "github.com/gdamore/tcell/v2"
)

const (
  WALL = '#'
  SPACE = '.'
  PATH_LIMIT = 1000
  RENDER = true
  SHOW_RENDER = false
  SHOW_PATHS = false
  HEARING_DISTANCE = 6
)

type Map [][]rune

type Position struct {
  X int
  Y int
}

type Enemy struct {
  HP int
  Pos Position
  Damage int
}

type Game struct {
  Screen tcell.Screen
  Level Map
  Player Enemy
  Status string
  Width int
  Height int
  Enemies map[Position]*Enemy
}