e2

package module
v2.0.0-...-dfa404a Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 5 Imported by: 0

README

E2

E2 is an experimental game builder built on top of WECQS and Ebitengine.

License

The e2 package is distributed under the MIT License. See this page for more details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterComponent

func RegisterComponent[T any](name string)

RegisterComponent registers a given component type to the global E2 component registry.

This must be done before using Run or RunJSON.

func RegisterSystem

func RegisterSystem[T any](name string)

RegisterSystem registers a given system type to the global E2 system registry.

This must be done before using Run or RunJSON.

func Run

func Run(path string) (err error)

Run reads a JSON file at the given path and runs the game defined in it.

func RunJSON

func RunJSON(raw []byte) error

RunJSON takes a JSON string and runs the game defined in it.

Types

This section is empty.

Directories

Path Synopsis
examples
internal

Jump to

Keyboard shortcuts

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