game

package
v0.0.0-...-1f4dfb3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Terminated = errors.New("terminated")

Functions

This section is empty.

Types

type Game

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

func (*Game) Create

func (g *Game) Create(p *pet.Pet)

func (*Game) Draw

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

func (*Game) DrawInteractionsBar

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

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Game) LogState

func (g *Game) LogState()

func (*Game) Update

func (g *Game) Update() error

func (*Game) UpdatePetState

func (g *Game) UpdatePetState(p petState.PetState)

Jump to

Keyboard shortcuts

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