motion

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

func NewAnimation

func NewAnimation(name string) *Animation

func (*Animation) AddFrame

func (self *Animation) AddFrame(frame *ebiten.Image, frameTicks uint8)

func (*Animation) AddFrameWithSfx

func (self *Animation) AddFrameWithSfx(frame *ebiten.Image, frameTicks uint8, sfxKey SfxKey)

func (*Animation) FrameTicksElapsed

func (self *Animation) FrameTicksElapsed() uint8

func (*Animation) GetCurrentFrame

func (self *Animation) GetCurrentFrame() *ebiten.Image

func (*Animation) InPreLoopPhase

func (self *Animation) InPreLoopPhase() bool

func (*Animation) Name

func (self *Animation) Name() string

func (*Animation) Rewind

func (self *Animation) Rewind(soundscape *audio.Soundscape)

func (*Animation) RewindToLoop

func (self *Animation) RewindToLoop(soundscape *audio.Soundscape)

func (*Animation) SetLoopStart

func (self *Animation) SetLoopStart(index uint8)

func (*Animation) SkipIntro

func (self *Animation) SkipIntro(soundscape *audio.Soundscape)

func (*Animation) Update

func (self *Animation) Update(soundscape *audio.Soundscape)

type SfxKey

type SfxKey uint8
const (
	SfxNone SfxKey = iota
	SfxStep
	SfxLowStep
)

Jump to

Keyboard shortcuts

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