system

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CameraMoveSpeed = 0.132
View Source
const (
	TileWidth = 32
)

Variables

This section is empty.

Functions

func NewPlayerMoveSystem

func NewPlayerMoveSystem(player gohan.Entity, m *MovementSystem) *playerMoveSystem

func NewProfileSystem

func NewProfileSystem(player gohan.Entity) *profileSystem

func NewplayerFireSystem

func NewplayerFireSystem() *playerFireSystem

Types

type CameraSystem

type CameraSystem struct {
}

func NewCameraSystem

func NewCameraSystem() *CameraSystem

func (*CameraSystem) Draw

func (_ *CameraSystem) Draw(_ *gohan.Context, screen *ebiten.Image) error

func (*CameraSystem) Needs

func (_ *CameraSystem) Needs() []gohan.ComponentID

func (*CameraSystem) Update

func (s *CameraSystem) Update(ctx *gohan.Context) error

func (*CameraSystem) Uses

func (_ *CameraSystem) Uses() []gohan.ComponentID

type CreepSystem

type CreepSystem struct {
}

pause time, screen X, screen Y

func NewCreepSystem

func NewCreepSystem() *CreepSystem

func (*CreepSystem) Draw

func (_ *CreepSystem) Draw(_ *gohan.Context, screen *ebiten.Image) error

func (*CreepSystem) Needs

func (_ *CreepSystem) Needs() []gohan.ComponentID

func (*CreepSystem) Update

func (s *CreepSystem) Update(ctx *gohan.Context) error

func (*CreepSystem) Uses

func (_ *CreepSystem) Uses() []gohan.ComponentID

type MovementSystem

type MovementSystem struct {
	ScreenW, ScreenH float64
}

func NewMovementSystem

func NewMovementSystem() *MovementSystem

func (*MovementSystem) Draw

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

func (*MovementSystem) Needs

func (_ *MovementSystem) Needs() []gohan.ComponentID

func (*MovementSystem) Update

func (s *MovementSystem) Update(ctx *gohan.Context) error

func (*MovementSystem) Uses

func (_ *MovementSystem) Uses() []gohan.ComponentID

type RailSystem

type RailSystem struct {
}

func NewRailSystem

func NewRailSystem() *RailSystem

func (*RailSystem) Draw

func (_ *RailSystem) Draw(_ *gohan.Context, screen *ebiten.Image) error

func (*RailSystem) Needs

func (_ *RailSystem) Needs() []gohan.ComponentID

func (*RailSystem) Update

func (s *RailSystem) Update(ctx *gohan.Context) error

func (*RailSystem) Uses

func (_ *RailSystem) Uses() []gohan.ComponentID

type RenderDebugTextSystem

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

func NewRenderDebugTextSystem

func NewRenderDebugTextSystem(player gohan.Entity) *RenderDebugTextSystem

func (*RenderDebugTextSystem) Draw

func (s *RenderDebugTextSystem) Draw(ctx *gohan.Context, screen *ebiten.Image) error

func (*RenderDebugTextSystem) Needs

func (*RenderDebugTextSystem) Update

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

func (*RenderDebugTextSystem) Uses

type RenderMessageSystem

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

func NewRenderMessageSystem

func NewRenderMessageSystem() *RenderMessageSystem

func (*RenderMessageSystem) Draw

func (s *RenderMessageSystem) Draw(_ *gohan.Context, screen *ebiten.Image) error

func (*RenderMessageSystem) Needs

func (s *RenderMessageSystem) Needs() []gohan.ComponentID

func (*RenderMessageSystem) Update

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

func (*RenderMessageSystem) Uses

type RenderSystem

type RenderSystem struct {
	ScreenW int
	ScreenH int
	// contains filtered or unexported fields
}

func NewRenderSystem

func NewRenderSystem() *RenderSystem

func (*RenderSystem) Draw

func (s *RenderSystem) Draw(ctx *gohan.Context, screen *ebiten.Image) error

func (*RenderSystem) Needs

func (s *RenderSystem) Needs() []gohan.ComponentID

func (*RenderSystem) Update

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

func (*RenderSystem) Uses

func (s *RenderSystem) Uses() []gohan.ComponentID

Jump to

Keyboard shortcuts

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