scene

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawable

type Drawable interface {
	Draw(w donburi.World, screen *ebiten.Image)
}

type Game

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

func NewGame

func NewGame(screenWidth int, screenHeight int, switchToTitle func()) *Game

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) OnLayoutChange

func (g *Game) OnLayoutChange(width, height int)

func (*Game) Update

func (g *Game) Update()

type Initializer

type Initializer interface {
	Init(w donburi.World)
}

type Stopper

type Stopper interface {
	Stop(w donburi.World)
}

type System

type System interface {
	Update(w donburi.World)
}

type Title

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

func NewTitle

func NewTitle(screenWidth int, screenHeight int, switchToGame func()) *Title

func (*Title) Draw

func (t *Title) Draw(screen *ebiten.Image)

func (*Title) OnLayoutChange

func (t *Title) OnLayoutChange(width, height int)

func (*Title) Update

func (t *Title) Update()

Jump to

Keyboard shortcuts

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