Crate game_engine_core[][src]

Expand description

A simple crate that takes care of updating the main loop of a game engine. It is based on a stack-based state machine and is agnostic of the engine used. It does not rely on an ECS nor on other libraries. Sleeping is configurable. When sleeping is disabled, this crate is compatible with WASM. When enabled, the game loop will run at the target framerate.

Structs

Engine

The main structure of the engine core loop. It holds the data necessary to the execution of a game engine.

StateMachine

A state machine that holds the stack of states and performs transitions between states. It can be created using

Time

Frame timing values.

Enums

StateTransition

A transition from one state to the other.

Traits

State

Trait that states must implement.