game

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WindowTitle  = "Spaceship"
	WindowWidth  = 640
	WindowHeight = 480
	WindowScale  = 1
)

Variables

Functions

This section is empty.

Types

type Bullet

type Bullet struct {
	gml.Object
	Owner gml.InstanceIndex
}

func (*Bullet) Create

func (self *Bullet) Create()

func (*Bullet) Update

func (self *Bullet) Update()

type EnemyShip

type EnemyShip struct {
	gml.Object
}

func (*EnemyShip) Create

func (self *EnemyShip) Create()

func (*EnemyShip) Destroy

func (self *EnemyShip) Destroy()

func (*EnemyShip) Update

func (self *EnemyShip) Update()

type GameController

type GameController struct {
	gml.Controller
	Player       gml.InstanceIndex
	ShipsSighted int
}

func (*GameController) GameStart

func (_ *GameController) GameStart()

type Player

type Player struct {
	gml.Object

	Score int
	// contains filtered or unexported fields
}

func (*Player) Create

func (self *Player) Create()

func (*Player) Draw

func (self *Player) Draw()

func (*Player) Update

func (self *Player) Update()

Jump to

Keyboard shortcuts

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