component

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 3 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 struct {
	Body  *cp.Body
	Shape *cp.Shape
}

type Player

type Player struct{}

type Position

type Position struct {
	X, Y float64

	Body *cp.Body
}

type Sprite

type Sprite struct {
	Image          *ebiten.Image
	HorizontalFlip bool
	VerticalFlip   bool

	Angle float64

	Overlay            *ebiten.Image
	OverlayX, OverlayY float64 // Overlay offset

	OffsetX, OffsetY float64

	Frame     int
	Frames    []*ebiten.Image
	FrameTime time.Duration
	LastFrame time.Time
	NumFrames int

	DamageTicks int

	OverrideColorScale bool
	ColorScale         float64

	Layer int
}

type Velocity

type Velocity struct {
	X, Y float64
}

Jump to

Keyboard shortcuts

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