sprite

package
v0.0.0-...-8b39f33 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 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 Anim

type Anim struct {
	Face, Frame int
	Ticks       int
}

func (*Anim) Move

func (a *Anim) Move(sh *Sheet, vel geom.Point)

type Sheet

type Sheet struct {
	Name                     string
	FrameSize                int
	Tempo                    int
	North, East, South, West int
}

func LoadSheet

func LoadSheet(s string) (Sheet, error)

func (*Sheet) Frame

func (sh *Sheet) Frame(Face, Frame int) geom.Rectangle

Jump to

Keyboard shortcuts

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