Documentation ¶
Index ¶
- type Animation
- func (anim *Animation) Draw(x float64, y float64, screen *ebiten.Image)
- func (anim *Animation) GetFrames(frames map[string]interface{})
- func (anim *Animation) GetImage(meta map[string]interface{})
- func (anim *Animation) GetTags(meta map[string]interface{})
- func (anim *Animation) Init(aseData map[string]interface{}, tag string)
- func (anim *Animation) OnLoop(callback OnLoopType)
- func (anim *Animation) SetTag(tag string)
- func (anim *Animation) Update()
- type Frame
- type OnLoopType
- type Options
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct { Tags map[string]*Tag Frames []*Frame CurrentTag *Tag CurrentFrame *Frame CurrentFrameIdx int FrameCounter float64 Options *Options Image *ebiten.Image OnLoopCallback OnLoopType Instance interface{} }
func (*Animation) OnLoop ¶
func (anim *Animation) OnLoop(callback OnLoopType)
type OnLoopType ¶
type OnLoopType func(interface{}, *Animation)
Click to show internal directories.
Click to hide internal directories.