Documentation ¶
Index ¶
- func NewCaptionSceneFunc(face font.Face, textColor color.Color, getText func() string) *captionScene
- func NewCaptionSceneString(face font.Face, textColor color.Color, text string) *captionScene
- type Manager
- func (m *Manager) Activate(name string, needReInit bool)
- func (m *Manager) Delete(name string)
- func (m *Manager) Init(name string)
- func (m *Manager) Install(name string, Scene scene, inited bool)
- func (m *Manager) OnCommand(command string)
- func (m *Manager) SetAsPauseScene(pauseSceneName string)
- func (m *Manager) SetPaused(paused bool)
- func (m *Manager) UpdateAndDraw(dt float64, image *ebiten.Image, doDraw bool)
- func (m *Manager) WaitDone()
- type PauseScene
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCaptionSceneFunc ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) SetAsPauseScene ¶
Main or Network loop
func (*Manager) UpdateAndDraw ¶
main cycle
type PauseScene ¶
type PauseScene struct {
// contains filtered or unexported fields
}
func NewPauseScene ¶
func NewPauseScene(face font.Face, getReason func() network.PauseReason) *PauseScene
func (*PauseScene) Destroy ¶
func (p *PauseScene) Destroy()
func (*PauseScene) Draw ¶
func (p *PauseScene) Draw(image *ebiten.Image)
func (*PauseScene) Init ¶
func (p *PauseScene) Init()
func (PauseScene) OnCommand ¶
func (PauseScene) OnCommand(command string)
func (*PauseScene) Update ¶
func (p *PauseScene) Update(float64)
Click to show internal directories.
Click to hide internal directories.