Versions in this module Expand all Collapse all v0 v0.2.1 Apr 10, 2024 v0.2.0 Mar 25, 2024 Changes in this version type TileSet + TextHighlightColor color.RGBA v0.1.0 Mar 10, 2024 Changes in this version + func FromJson(file string, obj any) error + func FromJsonFs(f fs.FS, file string, obj any) error + func ReadImage(p string) (image.Image, error) + func ToJson(file string, obj any) error + func Walk(base string, tileSet string, f func(sheet RawSpriteSheet, dir Directory) error) error + func WalkDirs(base string, tileSet string, sheet RawSpriteSheet, ...) error + func WalkSheets(base string, tileSet string, f func(sheet RawSpriteSheet) error) error + func WriteImage(file string, img image.Image) error + type Directory struct + Dir string + Directories []Directory + Files []File + HasJson bool + type File struct + IsJson bool + Name string + type RawSprite struct + AnimFrames int + AnimSpeed int + File []string + Height int + Id string + Multitile [][]string + YOffset int + type RawSpriteSheet struct + Directory string + Height int + Width int + type Sprite struct + AnimFrames int + AnimSpeed int + Height int + Id string + Index []int + Multitile [][]int + YOffset int + func (s *Sprite) IsAnimated() bool + func (s *Sprite) IsMultitile() bool + type SpriteSheet struct + SpriteHeight int + SpriteWidth int + Sprites []Sprite + TotalSprites int + type TileSet struct + BackgroundColor color.RGBA + TextColor color.RGBA + TileHeight int + TileWidth int