Skip to main content

Module basic

Module basic 

Source
Expand description

BasicData: a ready-made GameData for a game on the short path (ADR-0036). It reads the files every such game has from its bundle, through the format registry (BasicData::formats): the English screen text, the keymap, the palette with the engine’s colours, the font atlas and every picture. A part of the game’s own rides along in BasicData::own. It has no sounds, no voices (()), no settings of the game’s own (()) and one palette. A game that needs more writes its own GameData, as before.

Structs§

BasicData
A game’s data on the short path: what the engine reads from the standard files, the files themselves and the game’s own part T. Its actions are A (most simply UiAction), its colours the engine’s.

Constants§

BASIC_GLYPHS
The glyphs the font must have: printable ASCII, and the box and shape glyphs the engine’s widgets draw.
ENGLISH_RON
The English screen text by key, in the bundle.
FONT_PNG
The font atlas’s picture, beside FONT_RON.
FONT_RON
The font atlas’s description, in the bundle.
KEYMAP_RON
The keymap file, in the bundle.
PALETTE_RON
The palette, in the bundle: at least the engine’s colours.

Type Aliases§

Own
How a game reads its own part from its bundle, with every problem of every file.