assets

package
v0.0.0-...-1449d46 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(tp Kind) bool

func ForEach

func ForEach(f func(Kind, ImageSet))

func Length

func Length() int

Types

type ImageSet

type ImageSet struct {
	EbitenImage *ebiten.Image
	Image       image.Image
	Scale       float64
	Vectors     []cp.Vector
	Score       int
}

func Get

func Get(tp Kind) ImageSet

type Kind

type Kind int
const (
	Tomato Kind = 1 + iota
	Onion
	Eggplant
	Cucumber
	Carrot
	Pumpkin
	Whiteradish

	Min Kind = Tomato
	Max Kind = Whiteradish
)

func (Kind) Next

func (k Kind) Next() (hasNext bool, next Kind)

func (Kind) Score

func (k Kind) Score() int

Jump to

Keyboard shortcuts

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