game

package
v0.0.0-...-01660b7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

Main game container

func NewGame

func NewGame() *Game

Create a new "designed for play" game.

func (*Game) Draw

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

Draw the game.

func (*Game) Layout

func (g *Game) Layout(a, b int) (int, int)

Return a static layout

func (*Game) NewRound

func (g *Game) NewRound()

Create a new round. This basically increases the number of sopheres, and occasionally increases the number of explosions available.

func (*Game) TestSetup

func (g *Game) TestSetup()

Convert a game to a dedicated test setup.

func (*Game) Update

func (g *Game) Update() error

Compute the next frame

Jump to

Keyboard shortcuts

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