states

package
v0.0.0-...-cc63efc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextState

func NextState(state State)

Types

type CheatEngine

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

func NewCheatEngine

func NewCheatEngine() *CheatEngine

func (*CheatEngine) AddCheat

func (c *CheatEngine) AddCheat(str string, cb func(g *Game))

func (*CheatEngine) Update

func (c *CheatEngine) Update(g *Game)

type Game

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

func NewGame

func NewGame() *Game

func (*Game) Camera

func (g *Game) Camera() *game.Camera

func (*Game) Draw

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

func (*Game) Enter

func (g *Game) Enter()

func (*Game) Leave

func (g *Game) Leave()

func (*Game) Room

func (g *Game) Room() *game.Room

func (*Game) Update

func (g *Game) Update() error

type State

type State interface {
	Draw(screen *ebiten.Image)
	Update() error
	Enter()
	Leave()
}
var CurrentState State

Jump to

Keyboard shortcuts

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