assets

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetManager

type AssetManager interface {
	Get(path string) ([]byte, error)
	GetEbitenImage(path string) (*ebiten.Image, error)
}

func NewAssetManager

func NewAssetManager(assettype AssetType) AssetManager

type AssetType

type AssetType int
const (
	AssetTypeDice AssetType = iota
)

type SpriteSheet

type SpriteSheet interface {
	Get(int) (*ebiten.Image, error)
	Draw(screen *ebiten.Image)
}

func NewSpriteSheetGrid

func NewSpriteSheetGrid(assetManager AssetManager, path string, spriteWidth, spriteHeight, rows, cols int) (SpriteSheet, error)

Jump to

Keyboard shortcuts

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