Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpriteAnimation ¶
type SpriteAnimation struct {
// contains filtered or unexported fields
}
func NewSpriteAnimation ¶
func NewSpriteAnimation(sprites []*pixel.Sprite) *SpriteAnimation
func (*SpriteAnimation) NextFrame ¶
func (s *SpriteAnimation) NextFrame() SpriteAnimationFrame
func (*SpriteAnimation) OnDone ¶
func (s *SpriteAnimation) OnDone(subscriber func())
type SpriteAnimationFrame ¶
type Spritesheet ¶
type Spritesheet struct {
// contains filtered or unexported fields
}
func LoadSpritesheet ¶
func LoadSpritesheet(ctx context.Context, cfg *config.Spritesheet) (*Spritesheet, error)
func (Spritesheet) Range ¶
func (s Spritesheet) Range(configs []*config.SpriteFrame) ([]*pixel.Sprite, error)
Click to show internal directories.
Click to hide internal directories.