level

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

func Draw

func Draw(screen *ebiten.Image) error

Types

type Level

type Level struct {
	Data *weapon.WeaponData
	// contains filtered or unexported fields
}

func ByIndex

func ByIndex(index int) *Level

func IsHit

func IsHit(x, y float64) *Level

func New

func New(w *weapon.WeaponData) (*Level, error)

func (*Level) Draw

func (n *Level) Draw(screen *ebiten.Image, yOffset float64) error

func (*Level) IsHit

func (n *Level) IsHit(x, y float64) bool

func (*Level) SetDead

func (n *Level) SetDead(state bool)

func (*Level) SetHeight

func (n *Level) SetHeight(value float64)

func (*Level) SetPercent

func (n *Level) SetPercent(value float64)

func (*Level) SetPosition

func (n *Level) SetPosition(x, y float64)

func (*Level) SetVisible

func (n *Level) SetVisible(value bool)

func (*Level) SetWidth

func (n *Level) SetWidth(value float64)

Jump to

Keyboard shortcuts

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