Expand description

The game engine

This module was formerly the home of a specs implementation but is now home to a zero-dependency version of the engine that functions almost identically. It ended up being a little more straightforward when entities did not need to be queried.

When start is called, a mutable World instance is created. This keeps track of things like the warrior’s health and position, plus all enemy units’ health and position as well.

Within the game’s loop, mutable references to the World are handed to various systems that live in the systems module and define a portion of the game’s logic.

Modules

Game engine systems

Functions

The entry point for the engine, called by Game