core

package
v0.0.0-...-df66393 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

Game is the core game object It implements the ebiten.Game interface

func (*Game) Draw

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

Draw is called every frame

func (*Game) Layout

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

Layout is called every frame

func (*Game) Update

func (g *Game) Update() error

Update is called every frame

type SampleGame

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

func (*SampleGame) Draw

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

func (*SampleGame) Layout

func (g *SampleGame) Layout(outsideWidth, outsideHeight int) (int, int)

func (*SampleGame) Update

func (g *SampleGame) Update() error

Jump to

Keyboard shortcuts

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