Documentation ¶
Index ¶
- Constants
- Variables
- func LevelCoordinatesToScreen(x, y float64) (float64, float64)
- func PathTileIndex(x, y float64) int
- func PathTilesAtMapTile(tx, ty float64) []int
- func PixelCoordinatesOffScreen(x, y float64) bool
- func ScreenCoordinatesToLevel(x, y float64) (float64, float64)
- func TileIndex(x, y float64) int
- func ValidXY(x, y int) bool
- type Tile
Constants ¶
View Source
const MapSize = 128
View Source
const TPS = 144
View Source
const TileSize = 4
View Source
const TileSizeEnvironment = 16
Variables ¶
View Source
var ( ScreenWidth float64 = 800 ScreenHeight float64 = 600 CamX float64 CamY float64 CamScale float64 = 1 MinCamScale float64 = 1 CursorX float64 CursorY float64 Map []Tile MapPath [][2]float64 SelectX float64 = -1 SelectY float64 = -1 Debug int StartMuted bool ShownIntro bool DisableEsc bool )
Functions ¶
func PathTileIndex ¶
func PathTilesAtMapTile ¶
Types ¶
type Tile ¶
func NewGameMap ¶
func (Tile) PathEstimatedCost ¶
func (Tile) PathNeighborCost ¶
func (Tile) PathNeighbors ¶
func (t Tile) PathNeighbors() []astar.Pather
Click to show internal directories.
Click to hide internal directories.