player

package
v0.0.0-...-28fb5cd Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Sprites   []sprite.Context
	Font      fonts.Context
	Shapes    []shapes.Shape
	Collision *entity.Collision
	With      string
	// contains filtered or unexported fields
}

Ball TODO doc

func New

func New(x, y float32, sprites []sprite.Context, shapes []shapes.Shape, font fonts.Context) Player

New TODO doc

func (*Player) Bind

func (p *Player) Bind(program uint32) error

Bind TODO doc

func (Player) Bounds

func (p Player) Bounds() shapes.Shape

func (Player) Draw

func (p Player) Draw()

Draw TODO doc

func (*Player) Handle

func (p *Player) Handle(event events.Event)

Handle events

func (*Player) NextShape

func (p *Player) NextShape()

func (Player) Pos

func (p Player) Pos() mgl32.Vec3

func (*Player) SetPos

func (p *Player) SetPos(pos mgl32.Vec3)

SetPos of player

func (*Player) Update

func (p *Player) Update(dt float32, group *[]entity.Entity)

Update TODO doc

Jump to

Keyboard shortcuts

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