shared

package module
v0.0.0-...-21d9472 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TilemapPacked           = "tilemap_packed.png"
	TilemapCharactersPacked = "tilemap-characters_packed.png"
	TilemapExampleA         = "tilemap-example-a.tmx"
	TilemapExampleB         = "tilemap-example-b.tmx"
	TilesetCharacters       = "tileset-characters.tsx"
	TilesetTiles            = "tileset-tiles.tsx"
)

Variables

This section is empty.

Functions

func LoadAsset

func LoadAsset(filename string) ([]byte, error)

func LoadTiledAsset

func LoadTiledAsset[T tiled.Tmx | tiled.Tsx | tiled.Tx](filename string) (*T, error)

func MustLoadImageAsset

func MustLoadImageAsset(filename string) []byte

func MustLoadTiledAsset

func MustLoadTiledAsset[T tiled.Tmx | tiled.Tsx | tiled.Tx](filename string) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL