scenes

package
v0.0.0-...-b720342 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

GameScene is the scene of the main game screen.

func NewGameScene

func NewGameScene(width, height int) (*GameScene, error)

NewGameScene returns a new GemeScene instance.

func (*GameScene) Draw

func (g *GameScene) Draw(screen *ebiten.Image) error

Draw draws the objects contained in this scene.

func (*GameScene) Update

func (g *GameScene) Update() error

Update updates the inner state of this scene.

Jump to

Keyboard shortcuts

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