scene

package
v0.0.0-...-84cadf2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Airbase

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

func NewAirbase

func NewAirbase(startCallback system.StartGameCallback, backToMenuCallback func()) *Airbase

func (*Airbase) Draw

func (a *Airbase) Draw(screen *ebiten.Image)

func (*Airbase) Update

func (a *Airbase) Update()

type Drawable

type Drawable interface {
	Draw(w donburi.World, screen *ebiten.Image)
}

type Game

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

func NewGame

func NewGame(players []system.ChosenPlayer, screenWidth int, screenHeight int) *Game

func (*Game) Draw

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

func (*Game) Update

func (g *Game) Update()

type System

type System interface {
	Update(w donburi.World)
}

type Title

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

func NewTitle

func NewTitle(screenWidth int, screenHeight int, newGameCallback func()) *Title

func (*Title) Draw

func (t *Title) Draw(screen *ebiten.Image)

func (*Title) Update

func (t *Title) Update()

Jump to

Keyboard shortcuts

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