assets

package
v0.0.0-...-6060011 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BarBG   *ebiten.Image
	HPBarFG *ebiten.Image
	XPBarFG *ebiten.Image

	YoutubeIcon *ebiten.Image
	TwitchIcon  *ebiten.Image
)
View Source
var (
	//go:embed img animations web
	Assets embed.FS
)
View Source
var Bundles map[string]Bundle

Functions

func LoadEbitenImg

func LoadEbitenImg(path string) *ebiten.Image

func LoadImg

func LoadImg(path string) image.Image

Types

type Animation

type Animation struct {
	Frames []*ebiten.Image
	Skins  []*ebiten.Image
}

type Bundle

type Bundle map[string]*Animation

func LoadAnimation

func LoadAnimation(path string) (bundle Bundle, err error)

func MustLoadAnimation

func MustLoadAnimation(path string) Bundle

Jump to

Keyboard shortcuts

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