game

package
v0.0.0-...-4d2f849 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSpeed = 5
View Source
var ShouldIterate = makeShouldIterate()
View Source
var Width, Height = 160, 120

Functions

This section is empty.

Types

type Game

type Game struct {
	Tick      int
	Iteration int
	Speed     int
	Cells     map[int]map[int]cell.Cell
	Changes   map[int]map[int]struct{}
	ShowHelp  bool
	Theme     theme.Theme
}

func (*Game) Draw

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

func (*Game) Layout

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

func (*Game) ResetTiles

func (g *Game) ResetTiles(density float32)

func (*Game) Update

func (g *Game) Update() error
type MenuItem struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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