game

package
v0.0.0-...-6f4ae11 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATE_RUNNING gameState = iota
	STATE_GAMEOVER
	STATE_WIN
	STATE_MENU
)

Variables

This section is empty.

Functions

func DrawGame

func DrawGame()

func Load

func Load()

func Unload

func Unload()

func UpdateGame

func UpdateGame()

Types

type Game

type Game struct{}

func (*Game) Destroy

func (g *Game) Destroy()

func (*Game) Init

func (g *Game) Init()

func (*Game) Run

func (g *Game) Run()

type TileState

type TileState uint8
const (
	Hidden TileState = iota
	Found
	Flagged
)

Jump to

Keyboard shortcuts

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