game

package
v0.0.0-...-40b9e5c Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game interface {
	// Called from game loop
	Update() error
}

type GameController

type GameController struct {
	Game Game

	Window *component.Window
}

func NewGameController

func NewGameController(window *component.Window, game Game) GameController

func (*GameController) Cleanup

func (g *GameController) Cleanup()

func (*GameController) DrawFrame

func (g *GameController) DrawFrame() error

func (*GameController) Run

func (g *GameController) Run() error

func (*GameController) Setup

func (g *GameController) Setup()

func (*GameController) Update

func (g *GameController) Update() error

Jump to

Keyboard shortcuts

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