Skip to main content

Module basic

Module basic 

Source
Expand description

BasicGame: a game on the short path (ADR-0036), described once for its binary, its tools and its tests. It holds what the engine can’t read from the game’s files: who it is (AppInfo), its files, its first screen and, if it has them, its console, its own part, every screen it can show, the modules it installs and its record of its play for a crash report. From it come its data (BasicGame::data), its context (BasicGame::ctx), its Game and how a backend starts it (BasicGame::start).

Structs§

BasicGame
A game on the short path: its data is a BasicData of actions A and its own part T, read from one layer of files.

Constants§

BASIC_CONSOLE
The console of a game that doesn’t say: 48 × 24 cells of 8 × 16 pixels.

Type Aliases§

First
The screen a game on the short path starts on, made on its context.
Modules
The modules a game on the short path installs, made each time its Game is: shuyi::enabled_modules, for those its features turn on.
Screens
Every screen a game on the short path can show, overlays on their own, for the check that its controls fit each target.