weapons

package
v0.0.0-...-fb94173 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bullet

type Bullet interface {
	Update() // Update bullets position
	Draw() (*ebiten.Image, *ebiten.DrawImageOptions)
}

func NewBullet

func NewBullet(w Weapon, d common.Direction) Bullet

type GunBullet

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

func (*GunBullet) Draw

func (g *GunBullet) Draw() (*ebiten.Image, *ebiten.DrawImageOptions)

func (*GunBullet) Update

func (g *GunBullet) Update()

type Weapon

type Weapon int
const (
	Gun Weapon = iota
	HeavyMachineGun
	RocketLauncher
	ShotGun
	FlameShot
	LaserGun
)

Jump to

Keyboard shortcuts

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