Documentation ¶
Index ¶
Constants ¶
View Source
const MaxGridSize = 50
MaxGridSize is the maximum grid size
Variables ¶
This section is empty.
Functions ¶
func LoadLevel ¶
func LoadLevel(packageData PackageData, levelNum, layoutWidth, layoutHeight int, gameSpriteSheet *ec.SpriteSheet) (gutils.Vec2d[Tile], loader.EntityComponentList, error)
LoadLevel loads a level
func PreloadEntities ¶
func PreloadEntities(entityMetadataPath string, world w.World) loader.EntityComponentList
PreloadEntities preloads entities with components
Types ¶
type PackageData ¶
PackageData contains level package data
func LoadPackage ¶
func LoadPackage(packageName string) (packageData PackageData, packageErr error)
LoadPackage loads level package from a text file
type Tile ¶
type Tile uint8
Tile is a game tile
List of game tiles
func (*Tile) ContainsAny ¶
ContainsAny checks if a game tile contains any of the provided tiles
Click to show internal directories.
Click to hide internal directories.