system

package
v0.0.0-...-a9b3afa Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnemyKilledEvent = events.NewEventType[EnemyKilled]()

Functions

func OnEnemyKilledAddScore

func OnEnemyKilledAddScore(w donburi.World, event EnemyKilled)

func OnEnemyKilledDestroyEnemy

func OnEnemyKilledDestroyEnemy(w donburi.World, event EnemyKilled)

func SetupEvents

func SetupEvents(w donburi.World)

Types

type Bounds

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

func NewBounds

func NewBounds() *Bounds

func (*Bounds) Update

func (b *Bounds) Update(w donburi.World)

type Collision

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

func NewCollision

func NewCollision() *Collision

func (*Collision) Update

func (c *Collision) Update(w donburi.World)

type Controls

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

func NewControls

func NewControls() *Controls

func (*Controls) Update

func (i *Controls) Update(w donburi.World)

type Debug

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

func NewDebug

func NewDebug(restartLevelCallback func()) *Debug

func (*Debug) Draw

func (d *Debug) Draw(w donburi.World, screen *ebiten.Image)

func (*Debug) Update

func (d *Debug) Update(w donburi.World)

type Despawn

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

func NewDespawn

func NewDespawn() *Despawn

func (*Despawn) Update

func (d *Despawn) Update(w donburi.World)

type EnemyKilled

type EnemyKilled struct {
	Enemy *donburi.Entry
}

type Events

type Events struct{}

func NewEvents

func NewEvents() *Events

func (*Events) Update

func (e *Events) Update(w donburi.World)

type HUD

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

func NewHUD

func NewHUD() *HUD

func (*HUD) Draw

func (h *HUD) Draw(w donburi.World, screen *ebiten.Image)

type Health

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

func NewHealth

func NewHealth() *Health

func (*Health) Update

func (h *Health) Update(w donburi.World)

type Render

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

func NewRenderer

func NewRenderer() *Render

func (*Render) Draw

func (r *Render) Draw(w donburi.World, screen *ebiten.Image)

func (*Render) Update

func (r *Render) Update(w donburi.World)

type Velocity

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

func NewVelocity

func NewVelocity() *Velocity

func (*Velocity) Update

func (v *Velocity) Update(w donburi.World)

Jump to

Keyboard shortcuts

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