Scripting API

Game

The Game runtime coordinates startup, input handling, updates, rendering, and transitions between the major scenes.

1 min read Runtime game lifecycle runtime

Ichiloto\Engine\Core\Game is the top-level runtime object.

It is responsible for bringing together the scene manager, notification manager, modal layer, battle engine selection, and the terminal-facing console setup. In practice, that makes it the point where the engine's lifecycle becomes concrete.

Key responsibilities include:

  • configuring the runtime and debug behavior
  • preparing terminal state before the loop begins
  • running the main input/update/render cycle
  • synchronizing screen size and handing control to the active scene
  • stopping cleanly when the player exits

If you need to reason about "what owns the game loop?", start here.