player

package
v0.0.0-...-1050381 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	model.Model
	MoveSpeed     float32
	RotationSpeed mgl32.Quat

	// FireRate is the duration between attacks.
	FireRate time.Duration
	// contains filtered or unexported fields
}

func New

func New(mesh mesh.Mesh) *Player

func (*Player) CanFire

func (p *Player) CanFire() bool

func (*Player) FireWeapon

func (p *Player) FireWeapon() *bullet.Bullet

func (*Player) Move

func (p *Player) Move(forward, back bool, delta float32)

func (*Player) Rotate

func (p *Player) Rotate(left, right bool, delta float32)

Jump to

Keyboard shortcuts

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