Documentation ¶
Index ¶
- type Animation
- func NewAnimation(opts NewAnimationOptions) *Animation
- func NewNPCAttack1Animation() *Animation
- func NewNPCAttack2Animation() *Animation
- func NewNPCAttack3Animation() *Animation
- func NewNPCDeadAnimation() *Animation
- func NewNPCIdleAnimation() *Animation
- func NewNPCWalkAnimation() *Animation
- func NewPlayerAttack1Animation() *Animation
- func NewPlayerAttack2Animation() *Animation
- func NewPlayerAttack3Animation() *Animation
- func NewPlayerDeadAnimation() *Animation
- func NewPlayerFallAnimation() *Animation
- func NewPlayerIdleAnimation() *Animation
- func NewPlayerJumpAnimation() *Animation
- func NewPlayerLadderClimbAnimation() *Animation
- func NewPlayerLadderIdleAnimation() *Animation
- func NewPlayerRunAnimation() *Animation
- func (a *Animation) CurrentImage() *ebiten.Image
- func (a *Animation) DefaultOptions() *ebiten.DrawImageOptions
- func (a *Animation) Draw(screen *ebiten.Image, positionX float64, positionY float64, flip bool)
- func (a *Animation) IsFinished() bool
- func (a *Animation) Reset()
- func (a *Animation) Scale() (x float64, y float64)
- func (a *Animation) Shift() (x float64, y float64)
- func (a *Animation) Size() (w int, h int)
- func (a *Animation) Update()
- type NewAnimationOptions
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) IsFinished ¶
Click to show internal directories.
Click to hide internal directories.