projectile

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSheet

func GetSheet() pixel.Picture

Types

type Projectile

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

func New

func New(g hero.Hero, height float64, width float64) Projectile

func (*Projectile) Draw

func (p *Projectile) Draw(t pixel.Target)

func (Projectile) GetBody

func (p Projectile) GetBody() pixel.Rect

func (Projectile) GetFrame

func (p Projectile) GetFrame() pixel.Rect

func (Projectile) GetVel

func (p Projectile) GetVel() pixel.Vec

func (Projectile) Offscreen

func (p Projectile) Offscreen() bool

func (*Projectile) Update

func (p *Projectile) Update(dt float64)

Jump to

Keyboard shortcuts

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