Documentation
¶
Overview ¶
Package tiled has the components for adding tiled maps to our game
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Get = gets{ Map: func(e *goecs.Entity) Map { return e.Get(TYPE.Map).(Map) }, MapState: func(e *goecs.Entity) MapState { return e.Get(TYPE.MapState).(MapState) }, BlockInfo: func(e *goecs.Entity) BlockInfo { return e.Get(TYPE.BlockInfo).(BlockInfo) }, }
Get a geometry component
View Source
var TYPE = types{ Map: reflect.TypeOf(Map{}), MapState: reflect.TypeOf(MapState{}), BlockInfo: reflect.TypeOf(BlockInfo{}), }
TYPE hold the reflect.Type for our tiled components
Functions ¶
This section is empty.
Types ¶
type BlockInfo ¶ added in v0.1.5
type BlockInfo struct { Properties map[string]string // Properties are the properties for this block Row int // Row is the row of this block in the map Col int // Col is the col of this block in the map Layer string // Layer is the layer name for this block }
BlockInfo contains the info for a title block
Click to show internal directories.
Click to hide internal directories.