Versions in this module Expand all Collapse all v0 v0.0.2 May 22, 2023 Changes in this version + type Definitions struct + Tilesets []TilesetDefinition + type EntityInstance struct + FieldInstances []FieldInstance + Grid []int + Identifier string + Tile TileRectangle + type FieldInstance struct + Identifier string + Tile TileRectangle + Type string + Value interface{} + type LayerInstance struct + CHei int + CWid int + EntityInstances []EntityInstance + GridSize int + GridTiles []TileInstance + Identifier string + IntGridCsv []int + TilesetDefUid int + Type string + func (layer *LayerInstance) GetInt(x, y int) int + type LdtkJSON struct + Defs Definitions + Levels []Level + func UnmarshalLdtkJSON(data []byte) (LdtkJSON, error) + func (r *LdtkJSON) Marshal() ([]byte, error) + func (world *LdtkJSON) GetLevelByName(name string) *Level + func (world *LdtkJSON) GetLevelIndex(name string) int + type Level struct + FieldInstances []FieldInstance + Identifier string + LayerInstances []LayerInstance + PxHei int + PxWid int + func (level *Level) GetLayerByName(name string) *LayerInstance + func (level *Level) RenderLayerByName(screen *ebiten.Image, tilesetLib map[int]*ebiten.Image, name string, ...) + type TileInstance struct + F int + Px []int + Src []int + T int + type TileRectangle struct + H int + TilesetUid int + W int + X int + Y int + type TilesetDefinition struct + Identifier string + RelPath string + Uid int