game

package
v0.0.0-...-bdb03cc Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	*Entity
	// contains filtered or unexported fields
}

type By

type By func(b1, b2 *ump.Body) bool

func (By) Sort

func (by By) Sort(bodies []*ump.Body)

type Debris

type Debris struct {
	*Entity
	// contains filtered or unexported fields
}

type Entity

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

func (*Entity) Extents

func (entity *Entity) Extents() (l, t, w, h float32)

func (*Entity) GetCenter

func (entity *Entity) GetCenter() (x, y float32)

type Grenade

type Grenade struct {
	*Entity
	// contains filtered or unexported fields
}

type Guardian

type Guardian struct {
	*Entity
	// contains filtered or unexported fields
}

type Map

type Map struct {
	Player *Player
	// contains filtered or unexported fields
}

func NewMap

func NewMap(width, height float32, camera *lense.Camera) *Map

func (*Map) Draw

func (m *Map) Draw(l, t, w, h float32)

func (*Map) Get

func (m *Map) Get(item *ump.Body) gameObject

func (*Map) Reset

func (m *Map) Reset()

func (*Map) ToggleDebug

func (m *Map) ToggleDebug()

func (*Map) Update

func (m *Map) Update(dt, l, t, w, h float32)

type Player

type Player struct {
	*Entity
	// contains filtered or unexported fields
}

type Puff

type Puff struct {
	*Entity
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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