animations

package
v0.0.0-...-219ab8e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 5 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(opts NewAnimationOptions) *Animation

func NewNPCAttack1Animation

func NewNPCAttack1Animation() *Animation

func NewNPCAttack2Animation

func NewNPCAttack2Animation() *Animation

func NewNPCAttack3Animation

func NewNPCAttack3Animation() *Animation

func NewNPCDeadAnimation

func NewNPCDeadAnimation() *Animation

func NewNPCIdleAnimation

func NewNPCIdleAnimation() *Animation

func NewNPCWalkAnimation

func NewNPCWalkAnimation() *Animation

func NewPlayerAttack1Animation

func NewPlayerAttack1Animation() *Animation

func NewPlayerAttack2Animation

func NewPlayerAttack2Animation() *Animation

func NewPlayerAttack3Animation

func NewPlayerAttack3Animation() *Animation

func NewPlayerDeadAnimation

func NewPlayerDeadAnimation() *Animation

func NewPlayerFallAnimation

func NewPlayerFallAnimation() *Animation

func NewPlayerIdleAnimation

func NewPlayerIdleAnimation() *Animation

func NewPlayerJumpAnimation

func NewPlayerJumpAnimation() *Animation

func NewPlayerLadderClimbAnimation

func NewPlayerLadderClimbAnimation() *Animation

func NewPlayerLadderIdleAnimation

func NewPlayerLadderIdleAnimation() *Animation

func NewPlayerRunAnimation

func NewPlayerRunAnimation() *Animation

func (*Animation) CurrentImage

func (a *Animation) CurrentImage() *ebiten.Image

func (*Animation) DefaultOptions

func (a *Animation) DefaultOptions() *ebiten.DrawImageOptions

func (*Animation) Draw

func (a *Animation) Draw(screen *ebiten.Image, positionX float64, positionY float64, flip bool)

func (*Animation) IsFinished

func (a *Animation) IsFinished() bool

func (*Animation) Reset

func (a *Animation) Reset()

func (*Animation) Scale

func (a *Animation) Scale() (x float64, y float64)

func (*Animation) Shift

func (a *Animation) Shift() (x float64, y float64)

func (*Animation) Size

func (a *Animation) Size() (w int, h int)

func (*Animation) Update

func (a *Animation) Update()

type NewAnimationOptions

type NewAnimationOptions struct {
	Image       *ebiten.Image
	FrameOX     int
	FrameOY     int
	FrameWidth  int
	FrameHeight int
	FrameCount  int
	FrameSpeed  int
	ScaleX      float64
	ScaleY      float64
	ShiftX      float64
	ShiftY      float64
	IsLooping   bool
}

Jump to

Keyboard shortcuts

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