hero

package
v0.0.0-...-6447ae5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJumpY

func GetJumpY() float64

Types

type Hero

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

func New

func New() Hero

Initialize Gopher

func (*Hero) GetBody

func (g *Hero) GetBody() pixel.Rect

func (*Hero) GetDir

func (g *Hero) GetDir() float64

func (*Hero) GetVel

func (g *Hero) GetVel() pixel.Vec

func (Hero) IsCollide

func (g Hero) IsCollide(p platform.Platform) bool

func (*Hero) IsCrouch

func (g *Hero) IsCrouch() bool

func (*Hero) IsJump

func (g *Hero) IsJump() bool

func (*Hero) Jump

func (g *Hero) Jump()

Gopher Jump

func (*Hero) Update

func (g *Hero) Update(ctrl pixel.Vec, dt float64, platforms []platform.Platform)

Jump to

Keyboard shortcuts

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