systems

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package systems provides a standard set of systems for E2.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorldNotRegistered = errors.New("world assets not yet registered")
	ErrWorldRegistered    = errors.New("world assets already registered")
	ErrInvalidAssetType   = errors.New("invalid asset type")
	ErrInvalidAssetFormat = errors.New("invalid asset format")
	ErrInvalidAssetExt    = errors.New("invalid asset file extension")
	ErrExpectedFolder     = errors.New("given was is to a file, expected a folder")
	ErrExpectedFile       = errors.New("given was is to a folder, expected a file")
)
View Source
var Assets = &assetManager{
	ImagesPath: "images",
	AudioPath:  "audio",
	FontsPath:  "fonts",
	available:  make(map[string]any),
}

Assets is a simple asset manager system.

Functions

This section is empty.

Types

type Profiler added in v0.2.0

type Profiler struct {
	Addr string
	// contains filtered or unexported fields
}

func (*Profiler) Init added in v0.2.0

func (p *Profiler) Init(_ *wecqs.World) error

func (*Profiler) Stop added in v0.2.0

func (p *Profiler) Stop(_ *wecqs.World) error

type ShowFPS

type ShowFPS struct{}

ShowFPS prints the current framerate (FPS), tick rate (TPS) and delta time (DT) to the screen.

func (*ShowFPS) Draw

func (s *ShowFPS) Draw(_ *wecqs.World, canvas *ebiten.Image, dt float64)

func (*ShowFPS) Init

func (s *ShowFPS) Init(_ *wecqs.World) error

func (*ShowFPS) Stop

func (s *ShowFPS) Stop(_ *wecqs.World) error

Jump to

Keyboard shortcuts

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