system

package
v0.0.0-...-70eae83 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Background

func Background(screen *ebiten.Image)

Types

type Bounce

type Bounce struct {
	System *herd.SystemInfo
	Query  herd.Query[Texture]
}

func NewBounce

func NewBounce(app *herd.App) (Bounce, error)

func (Bounce) Update

func (b Bounce) Update() error

type Bunnie

type Bunnie struct {
	Pos     component.Position
	Vel     component.Velocity
	Hue     component.Hue
	Gravity component.Gravity
	Sprite  component.Sprite
}

type Gravity

type Gravity struct {
	Query herd.Query[GravityBundle]
}

func NewGravity

func NewGravity(app *herd.App) (Gravity, error)

func (Gravity) Update

func (g Gravity) Update() error

type GravityBundle

type GravityBundle struct {
	Vel     component.Velocity
	Gravity component.Gravity
}

type Metrics

type Metrics struct {
	Settings *component.Settings
	System   *herd.SystemInfo
}

func NewMetrics

func NewMetrics(app *herd.App, settings *component.Settings) (Metrics, error)

func (Metrics) Draw

func (m Metrics) Draw(screen *ebiten.Image)

func (Metrics) Update

func (m Metrics) Update() error

type MoveBundle

type MoveBundle struct {
	Pos component.Position
	Vel component.Velocity
}

type Render

type Render struct {
	Query herd.Query[Tile]
}

func NewRender

func NewRender(app *herd.App) (Render, error)

func (Render) Draw

func (r Render) Draw(screen *ebiten.Image)

type Spawn

type Spawn struct {
	Manager  *herd.Manager
	Settings *component.Settings
	System   *herd.SystemInfo
}

func NewSpawn

func NewSpawn(app *herd.App, settings *component.Settings) (Spawn, error)

func (Spawn) Update

func (s Spawn) Update() error

type Texture

type Texture struct {
	Pos    component.Position
	Vel    component.Velocity
	Sprite component.Sprite
}

type Tile

type Tile struct {
	Pos    component.Position
	Hue    component.Hue
	Sprite component.Sprite
}

type Velocity

type Velocity struct {
	Query herd.Query[MoveBundle]
}

func NewVelocity

func NewVelocity(app *herd.App) (Velocity, error)

func (Velocity) Update

func (v Velocity) Update() error

Jump to

Keyboard shortcuts

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