animation

package
v0.0.0-...-c30d63a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	FrameCount         int
	FrameStartPosition basics.Vector2i
	Loop               bool
}

type Animator

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

func (*Animator) AddAnimation

func (a *Animator) AddAnimation(anim Animation, name string)

func (*Animator) Draw

func (a *Animator) Draw(screen *ebiten.Image)

func (*Animator) Init

func (a *Animator) Init(ImageFilepath string, frameSize basics.Vector2i, scale, position basics.Vector2f, speed float64)

func (*Animator) IsAnimation

func (a *Animator) IsAnimation(name string) bool

func (*Animator) IsLooping

func (a *Animator) IsLooping() bool

func (*Animator) SetAnimation

func (a *Animator) SetAnimation(name string, queue bool)

func (*Animator) Update

func (a *Animator) Update(position basics.Vector2f, deltaTime float64)

Jump to

Keyboard shortcuts

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