Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { MapWidth int `json:"mapWidth"` MapHeight int `json:"mapHeight"` TileWidth float64 `json:"tileWidth"` TileHeight float64 `json:"tileHeight"` TileMap struct { Path string `json:"path"` Tiles []struct { Key string `json:"key"` Top float64 `json:"top"` Left float64 `json:"left"` Width float64 `json:"width"` Height float64 `json:"height"` Priority int `json:"priority"` } `json:"tiles,omitempty"` } `json:"tileMap,omitempty"` Tile []struct { Path string `json:"path"` Key string `json:"key"` } `json:"tile,omitempty"` }
func LoadConfig ¶
LoadConfig : Loads the configuration file
Click to show internal directories.
Click to hide internal directories.