Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultAnimationName = "default"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animations ¶
type Frame ¶
func (*Frame) SetAnchorToggle ¶
func (bhvr *Frame) SetAnchorToggle(pos FrameAnchorToggle)
type FrameAnchorToggle ¶
type FrameAnchorToggle int
const ( Sprite_FrameAnchor_ToggleTopLeft FrameAnchorToggle = iota Sprite_FrameAnchor_ToggleTopCenter Sprite_FrameAnchor_ToggleTopRight Sprite_FrameAnchor_ToggleMiddleLeft Sprite_FrameAnchor_ToggleMiddleCenter Sprite_FrameAnchor_ToggleMiddleRight Sprite_FrameAnchor_ToggleBottomLeft Sprite_FrameAnchor_ToggleBottomCenter Sprite_FrameAnchor_ToggleBottomRight Sprite_FrameAnchor_ToggleDefault = Sprite_FrameAnchor_ToggleMiddleCenter )
type Sprite ¶
type Sprite struct { Animations Animations CurrentAnimation string CurrentFrame int }
func (*Sprite) GetCurrentFrame ¶
func (*Sprite) InsertFrame ¶
InsertFrame insert frame(s) at the end of the animation named "animationName" by Image. If "animationName" is empty, then it will use default value.
func (*Sprite) InsertFrameByImage ¶
InsertFrameByImage insert frame(s) at the end of the animation named "animationName" by Image. If "animationName" is empty, then it will use default value.
Click to show internal directories.
Click to hide internal directories.