Expand description
Game: a whole game’s UI behind one call per frame. The platform
feeds it raw key and controller-button events and the frame time and
shows the buffer it returns; a test drives it the same way without a
window.
The game gives the screen it starts on and its GameHooks: the
screen the first key opens while no layout is chosen (a layout picker),
and the debug menu. Modules from outside the default engine join it
with Game::with_module (crate::module).
Structs§
- Frame
Output - The result of one frame.
Vis the game’s voice clip variant. OnlyGame::framebuilds one, so a field may come without breaking a game (ADR-0039). - Game
- Owns the screens, input state, shared context and the console buffer.
- Game
Hooks - Where the game has a say in the frame loop.
Defaulthas none. - Screen
Hook - A screen the engine opens for the game, by name.
Enums§
- RawInput
Event - A keyboard or controller event as the platform reports it.
Constants§
- CRANK_
HINT - The text key of the hint to unfold the crank.