debug

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawRect

func DrawRect(screen *ebiten.Image, xOffset, yOffset float64, leftVec vec.MutableVector, width, height float64, outlineColor color.Color)

Types

type HitBoxDrawComponent

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

func NewHitBoxDrawComponent

func NewHitBoxDrawComponent(origin subjects.Originer, originAsCenter bool, width, height float64, opts ...HitBoxDrawOpt) *HitBoxDrawComponent

func (*HitBoxDrawComponent) Draw

func (hb *HitBoxDrawComponent) Draw(screen *ebiten.Image, xOffset, yOffset float64)

func (*HitBoxDrawComponent) Update

func (hb *HitBoxDrawComponent) Update() error

type HitBoxDrawOpt

type HitBoxDrawOpt func(hb *HitBoxDrawComponent)

func HitBoxDrawColor

func HitBoxDrawColor(c color.Color) HitBoxDrawOpt

type OriginDrawComponent

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

func NewOriginDrawComponent

func NewOriginDrawComponent(origin subjects.Originer, opts ...OriginOpt) *OriginDrawComponent

func (*OriginDrawComponent) Draw

func (oc *OriginDrawComponent) Draw(screen *ebiten.Image, xOffset, yOffset float64)

func (*OriginDrawComponent) Update

func (oc *OriginDrawComponent) Update() error

type OriginOpt

type OriginOpt func(oc *OriginDrawComponent)

func SetAntiAlias

func SetAntiAlias() OriginOpt

func SetColor

func SetColor(c color.Color) OriginOpt

func SetRadius

func SetRadius(radius float32) OriginOpt

Jump to

Keyboard shortcuts

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