scene

package
v0.0.0-...-8d8ddab Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func AllScenes

func AllScenes() *Container

func NewContainer

func NewContainer(scenes []Scene) *Container

func (*Container) AddTransition

func (c *Container) AddTransition(from, to Scene) error

func (*Container) Current

func (c *Container) Current() Scene

type Scene

type Scene interface {
	Update() error
	Draw(screen *ebiten.Image)
	End() bool
	Reset()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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