game

package
v0.0.0-...-3a5e1fd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreenWidth  = 640
	ScreenHeight = 480
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Counter int

	AA   bool
	Line bool

	Vertices []ebiten.Vertex
	Indices  []uint16

	Ships []*ship.Ship // Player's spaceship
}

func (*Game) Draw

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

func (*Game) Layout

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

func (*Game) Update

func (g *Game) Update() error

Jump to

Keyboard shortcuts

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