Documentation ¶
Overview ¶
Package e2 is a 3D isometric game framework.
Index ¶
- Constants
- Variables
- func ActiveScene() *wecqs.Scene
- func ActiveWorld() *wecqs.World
- func AddAuthor(s string)
- func AddIconData(raw []byte)
- func AddIconPath(iconPath string)
- func AddWorld(ws ...*wecqs.World) error
- func NewWorld(name string) (*wecqs.World, error)
- func PostSystems() *wecqs.SystemManager
- func PreSystems() *wecqs.SystemManager
- func RemoveWorld(name string) error
- func Run() error
- func SetDescription(description string)
- func SetMaxTPS(maxTPS int)
- func SetName(name string)
- func SetResolution(width, height int)
- func SetVersion(version string)
- func SetVsync(enabled bool)
- func SetWindowSize(width, height int)
- func SwitchWorld(name string) error
- func Undersample(i int)
- func World(name string) *wecqs.World
- func Worlds() *wecqs.WorldManager
- type Author
Constants ¶
View Source
const Name = "E2"
View Source
const Version = "0.2.0"
Variables ¶
Functions ¶
func AddAuthor ¶
func AddAuthor(s string)
AddAuthor adds an author. Given author strings be in the following formats: - a name (e.g. "Jai") - a name and an email (e.g. "Jai <jai@nonexistent.net>") - an email (e.g. "jai@nonexistent.net")
func PostSystems ¶ added in v0.2.0
func PostSystems() *wecqs.SystemManager
PostSystems returns the post-world SystemManager.
func PreSystems ¶ added in v0.2.0
func PreSystems() *wecqs.SystemManager
PreSystems returns the pre-world SystemManager.
func RemoveWorld ¶
RemoveWorld removes a world with the given name.
func SetDescription ¶
func SetDescription(description string)
SetDescription sets the game description.
func SetResolution ¶ added in v0.2.0
func SetResolution(width, height int)
SetResolution sets the game resolution.
func SetWindowSize ¶
func SetWindowSize(width, height int)
SetWindowSize sets the default window size.
func SwitchWorld ¶
SwitchWorld switches to a different world with the given name.
func Undersample ¶ added in v0.2.0
func Undersample(i int)
Undersample applies a basic pixelation effect by reducing the internal resolution of the game.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
pkg
|
|
components
Package components provides a standard set of components for E2.
|
Package components provides a standard set of components for E2. |
systems
Package systems provides a standard set of systems for E2.
|
Package systems provides a standard set of systems for E2. |
wecqs
Package wecqs provides the ECS (Entity-Component-System) structure for E2, built around Ebiten.
|
Package wecqs provides the ECS (Entity-Component-System) structure for E2, built around Ebiten. |
Click to show internal directories.
Click to hide internal directories.