tankbattle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DrawList []Drawfunc
View Source
var InitList []Initfunc
View Source
var UpdateList []Updatefunc

Functions

func RegisterDraw

func RegisterDraw(a func(screen *ebiten.Image), b int)

func RegisterInit

func RegisterInit(a func() error, b int)

func RegisterUpdate

func RegisterUpdate(a func(), b int)

Types

type Drawfunc

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

type Game

type Game struct {
}

func NewGame

func NewGame() (*Game, error)

func (*Game) Draw

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

Draw draws the current game to the given screen.

func (*Game) Layout

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

Layout implements ebiten.Game's Layout.

func (*Game) Update

func (g *Game) Update() error

Update updates the current game state.

type Initfunc

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

type Updatefunc

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

Jump to

Keyboard shortcuts

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