system

package
v0.0.0-...-0858f6f Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Background

type Background struct {
	Settings *component.Settings
}

func (*Background) Draw

func (b *Background) Draw(_ gohan.Entity, screen *ebiten.Image) error

func (*Background) Update

func (b *Background) Update(_ gohan.Entity) error

type Bounce

type Bounce struct {
	Position *component.Position
	Velocity *component.Velocity
	Sprite   *component.Sprite
}

func (*Bounce) Draw

func (g *Bounce) Draw(_ gohan.Entity, _ *ebiten.Image) error

func (*Bounce) Update

func (b *Bounce) Update(e gohan.Entity) error

type Gravity

type Gravity struct {
	Velocity *component.Velocity
	Gravity  *component.Gravity
}

func (*Gravity) Draw

func (g *Gravity) Draw(_ gohan.Entity, _ *ebiten.Image) error

func (*Gravity) Update

func (g *Gravity) Update(_ gohan.Entity) error

type Metrics

type Metrics struct {
	Settings *component.Settings
}

func (*Metrics) Draw

func (m *Metrics) Draw(_ gohan.Entity, screen *ebiten.Image) error

func (*Metrics) Update

func (m *Metrics) Update(_ gohan.Entity) error

type Profile

type Profile struct {
	Settings *component.Settings
	// contains filtered or unexported fields
}

func (*Profile) Draw

func (s *Profile) Draw(_ gohan.Entity, _ *ebiten.Image) error

func (*Profile) Update

func (s *Profile) Update(_ gohan.Entity) error

type Render

type Render struct {
	Position *component.Position
	Sprite   *component.Sprite
	Hue      *component.Hue
	// contains filtered or unexported fields
}

func NewRender

func NewRender() *Render

func (*Render) Draw

func (r *Render) Draw(_ gohan.Entity, screen *ebiten.Image) error

func (*Render) Update

func (r *Render) Update(_ gohan.Entity) error

type Spawn

type Spawn struct {
	Settings *component.Settings
}

func (*Spawn) Draw

func (s *Spawn) Draw(_ gohan.Entity, _ *ebiten.Image) error

func (*Spawn) Update

func (s *Spawn) Update(e gohan.Entity) error

type Velocity

type Velocity struct {
	Position *component.Position
	Velocity *component.Velocity
}

func (*Velocity) Draw

func (v *Velocity) Draw(_ gohan.Entity, _ *ebiten.Image) error

func (*Velocity) Update

func (v *Velocity) Update(_ gohan.Entity) error

Jump to

Keyboard shortcuts

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