gopher

package
v0.0.0-...-626738c Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJumpY

func GetJumpY() float64

Types

type Gopher

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

func New

func New() Gopher

Initialize Gopher

func (*Gopher) GetBody

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

func (*Gopher) GetDir

func (g *Gopher) GetDir() float64

func (*Gopher) GetVel

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

func (*Gopher) IsJump

func (g *Gopher) IsJump() bool

func (*Gopher) Jump

func (g *Gopher) Jump()

Gopher Jump

func (*Gopher) Update

func (g *Gopher) Update(ctrl pixel.Vec, dt float64)

Jump to

Keyboard shortcuts

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