system

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TileWidth = 16
)

Variables

This section is empty.

Functions

func NewPlayerMoveSystem

func NewPlayerMoveSystem() *playerMoveSystem

Types

type MovementSystem

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

func NewMovementSystem

func NewMovementSystem() *MovementSystem

func (*MovementSystem) Draw

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

func (*MovementSystem) Update

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

type PhysicsSystem

type PhysicsSystem struct {
	Player *component.Player
}

func NewPhysicsSystem

func NewPhysicsSystem() *PhysicsSystem

func (*PhysicsSystem) Draw

func (s *PhysicsSystem) Draw(e gohan.Entity, screen *ebiten.Image) error

func (*PhysicsSystem) Update

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

type RenderDebugTextSystem

type RenderDebugTextSystem struct {
	Position *component.Position
	Velocity *component.Velocity
	Player   *component.Player
	// contains filtered or unexported fields
}

func NewRenderDebugTextSystem

func NewRenderDebugTextSystem() *RenderDebugTextSystem

func (*RenderDebugTextSystem) Draw

func (s *RenderDebugTextSystem) Draw(e gohan.Entity, screen *ebiten.Image) error

func (*RenderDebugTextSystem) Update

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

type RenderMessageSystem

type RenderMessageSystem struct {
	Player *component.Player
	// contains filtered or unexported fields
}

func NewRenderMessageSystem

func NewRenderMessageSystem() *RenderMessageSystem

func (*RenderMessageSystem) Draw

func (s *RenderMessageSystem) Draw(e gohan.Entity, screen *ebiten.Image) error

func (*RenderMessageSystem) Update

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

type RenderSystem

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

func NewRenderSystem

func NewRenderSystem(layer int) *RenderSystem

func (*RenderSystem) Draw

func (s *RenderSystem) Draw(e gohan.Entity, screen *ebiten.Image) error

func (*RenderSystem) Update

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

type WinSystem

type WinSystem struct {
	Position *component.Position
	Velocity *component.Velocity
	Player   *component.Player
	// contains filtered or unexported fields
}

func NewWinSystem

func NewWinSystem() *WinSystem

func (*WinSystem) Draw

func (s *WinSystem) Draw(e gohan.Entity, screen *ebiten.Image) error

func (*WinSystem) Update

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

Jump to

Keyboard shortcuts

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