anim

package
v0.0.0-...-e1c21c9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Zlib Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Move

func Move(e engi.Entity, from, to f32.Vec2) *proxyAnimator

Move the Entity to given value.

func MoveX

func MoveX(e engi.Entity, from, to float32) *proxyAnimator

Move the 'x' to given value.

func MoveY

func MoveY(e engi.Entity, from, to float32) *proxyAnimator

Move the 'y' to given value.

func OfColor

func OfColor(target *gfx.Color, from, to gfx.Color) *proxyAnimator

OfColor returns a Animator that animates between gfx.Color values.

func OfFloat

func OfFloat(target *float32, from, to float32) *proxyAnimator

OfFloat returns a Animator that animates between float values.

func OfVec2

func OfVec2(target *f32.Vec2, from, to f32.Vec2) *proxyAnimator

OfVec2 returns a Animator that animates between f32.Vec2 values.

func Rotate

func Rotate(e engi.Entity, from, to float32) *proxyAnimator

Rotate the Entity to given value.

func Scale

func Scale(e engi.Entity, from, to f32.Vec2) *proxyAnimator

Scale the Entity to the given value.

func ScaleX

func ScaleX(e engi.Entity, from, to float32) *proxyAnimator

Scale the 'x' to the given value.

func ScaleY

func ScaleY(e engi.Entity, from, to float32) *proxyAnimator

Scale the 'x' to the given value.

func SetDefaultAnimationSystem

func SetDefaultAnimationSystem(as *AnimationSystem)

set shortcut

func Tint

func Tint(e engi.Entity, from, to gfx.Color) *proxyAnimator

Tint the Entity to given color.

Types

type AnimationSystem

type AnimationSystem struct {
	*frame.SpriteEngine
	*ween.TweenEngine
	// contains filtered or unexported fields
}

func NewAnimationSystem

func NewAnimationSystem() *AnimationSystem

func (*AnimationSystem) RequireTable

func (as *AnimationSystem) RequireTable(tables []interface{})

func (*AnimationSystem) Update

func (as *AnimationSystem) Update(dt float32)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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