scene

package
v0.99.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameScene

type GameScene struct {
	BgColor color.Color
}

func (*GameScene) Draw

func (s *GameScene) Draw(screen *ebiten.Image)

func (*GameScene) Update

func (s *GameScene) Update(dt time.Duration)

type Scene

type Scene interface {
	Update(dt time.Duration)
	Draw(screen *ebiten.Image)
}

type SceneManager

type SceneManager struct {
	// contains filtered or unexported fields
}

func (*SceneManager) Draw

func (sm *SceneManager) Draw(screen *ebiten.Image)

func (*SceneManager) Pop

func (sm *SceneManager) Pop()

func (*SceneManager) Push

func (sm *SceneManager) Push(s Scene)

func (*SceneManager) Top

func (sm *SceneManager) Top() Scene

func (*SceneManager) Update

func (sm *SceneManager) Update(dt time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL