Documentation ¶
Index ¶
- Variables
- type ActInfo
- type AnimationAct
- type AnimationFrame
- type AnimationFrameSize
- type AnimationInfo
- type Animator
- func (animator *Animator) Draw(batch *suslik.Batch, name string, position, origin, scale suslik.Point, ...)
- func (animator *Animator) Play(name string, frame int)
- func (animator *Animator) Playing(name string) bool
- func (animator *Animator) SetFrameTime(name string, dur time.Duration)
- func (animator *Animator) SetFrameTimeAll(dur time.Duration)
- func (animator *Animator) Stop(name string)
- type EventsBus
- type ResponderStack
- func (rs *ResponderStack) Close()
- func (rs *ResponderStack) Key(key suslik.Key, modifier suslik.Modifier, action suslik.Action)
- func (rs *ResponderStack) Mouse(x, y float32, button suslik.Key, action suslik.Action)
- func (rs *ResponderStack) Preload()
- func (rs *ResponderStack) Render()
- func (rs *ResponderStack) Resize(width, height float32)
- func (rs *ResponderStack) Scroll(amount float32)
- func (rs *ResponderStack) Setup()
- func (rs *ResponderStack) Type(char rune)
- func (rs *ResponderStack) Update(dt float32)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFrameTime = 100 * time.Millisecond
Functions ¶
This section is empty.
Types ¶
type AnimationAct ¶ added in v0.2.3
type AnimationAct struct {
// contains filtered or unexported fields
}
type AnimationFrame ¶ added in v0.2.3
type AnimationFrame struct {
AnimationFrameSize `json:"frame"`
}
type AnimationFrameSize ¶ added in v0.2.3
type AnimationInfo ¶ added in v0.2.3
type AnimationInfo struct { Frames map[string]AnimationFrame `json:"frames"` Acts map[string]ActInfo `json:"acts"` }
type Animator ¶ added in v0.2.3
type Animator struct {
// contains filtered or unexported fields
}
func MakeAnimator ¶ added in v0.2.3
func MakeAnimator(texture *suslik.Texture, info AnimationInfo) Animator
func (*Animator) SetFrameTime ¶ added in v0.2.3
func (*Animator) SetFrameTimeAll ¶ added in v0.2.3
type EventsBus ¶
func NewEventsBus ¶
func NewEventsBus() *EventsBus
func (*EventsBus) EventsImmediate ¶
func (bus *EventsBus) EventsImmediate() []interface{}
type ResponderStack ¶
type ResponderStack struct {
// contains filtered or unexported fields
}
func NewResponderStack ¶
func NewResponderStack(responder ...suslik.Responder) *ResponderStack
func (*ResponderStack) Close ¶
func (rs *ResponderStack) Close()
func (*ResponderStack) Preload ¶
func (rs *ResponderStack) Preload()
func (*ResponderStack) Render ¶
func (rs *ResponderStack) Render()
func (*ResponderStack) Resize ¶
func (rs *ResponderStack) Resize(width, height float32)
func (*ResponderStack) Scroll ¶
func (rs *ResponderStack) Scroll(amount float32)
func (*ResponderStack) Setup ¶
func (rs *ResponderStack) Setup()
func (*ResponderStack) Type ¶
func (rs *ResponderStack) Type(char rune)
func (*ResponderStack) Update ¶
func (rs *ResponderStack) Update(dt float32)
Click to show internal directories.
Click to hide internal directories.