controller

package
v0.0.0-...-0b6c129 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 5 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 {
	ViewModel *vm.ViewModel
}

Game control game main logic.

func NewGame

func NewGame(
	viewModel *vm.ViewModel,
) *Game

NewGame create new Game struct.

func (*Game) Draw

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

Draw game screen.

func (*Game) Layout

func (g *Game) Layout(_, _ int) (screenWidth, screenHeight int)

Layout returns the game screen size.

func (*Game) Update

func (g *Game) Update() error

Update game state.

Jump to

Keyboard shortcuts

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