game

package
v0.0.0-...-bccbc35 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Quick        bool
	ScreenWidth  int
	ScreenHeight int
}

type Game

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

func NewGame

func NewGame(config Config) *Game

func (*Game) Draw

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

func (*Game) Layout

func (g *Game) Layout(width, height int) (int, int)

func (*Game) Update

func (g *Game) Update() error

type Scene

type Scene interface {
	Update()
	Draw(screen *ebiten.Image)
}

Jump to

Keyboard shortcuts

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