A simple game engine using Ebitengine with ECS.
This package contains engine components used for displaying sprites and text and managing animations and UI.
This package contains functions for loading entities with components from a TOML file.
This package contains engine resources. It includes screen dimensions, fonts, spritesheets and controls.
This package contains functions for managing a state machine.
A state machine has a stack of game states, which can be changed via transitions. Only the systems of the top state are executed in the game loop.
This is useful for pausing game or changing a game level for example.
This package contains engine systems used for displaying sprites and text and managing animations and UI. They are run automatically on each frame.
This package defines the world, a global structure containing game data (ECS manager, components and resources).
It is passed as a parameter in all system and state functions.
The engine uses a TOML parser for reading TOML files. It uses the TOML v1.0.0 specification.
Deserialization is relatively straightforward, with TOML fields corresponding directly to components fields, with the exception of Text and SpriteRender components which need to load data dynamically.
See examples/transform/metadata/start.toml or loader/entity.go for more details.
Examples are included in the examples directory.
List of games using the engine: