Skip to content
Christian Oeing edited this page Jan 8, 2017 · 1 revision

Implementing a game essentially boils down to three major parts:

  • Rendering the game state
  • Processing player input
  • Updating the game logic

The Slash Framework leaves the first two parts to well-known game engines and focusses on providing data types for a clean, robust game logic model.

In fact, a Slash Framework game consists of the following parts that will be explained in the following sections:

  • Entity Manager. Creates and removes game entities and entity components, such as trees or starships.
  • Event Manager. Allows listeners to register for game-related events and notifies them whenever one of these events is fired.
  • System Manager. Updates all game logic systems in each tick.

Creating and starting a new game in C# is easy as this:

// Create new game.
var game = new Game();

// Start new game.
game.StartGame();

After a game has been started, you can cause a single tick to update the game logic, handle events and remove destroyed entities by calling the Update method:

// Tick game.
game.Update(dt);
Clone this wiki locally