asset

package
v0.0.0-...-98b24e6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

type Load struct {
	// contains filtered or unexported fields
}

func NewLoad

func NewLoad(filesystem fs.FS) *Load

func (*Load) Open

func (load *Load) Open(path string) (fs.File, error)

func (*Load) Sprite

func (load *Load) Sprite(path string) (*pixel.Sprite, error)

type Spritesheet

type Spritesheet struct {
	// contains filtered or unexported fields
}

func NewSpritesheet

func NewSpritesheet(pic pixel.Picture, lookup map[string]*pixel.Sprite) *Spritesheet

func (*Spritesheet) Get

func (s *Spritesheet) Get(name string) (*pixel.Sprite, error)

Jump to

Keyboard shortcuts

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