3 Commits
Author SHA1 Message Date
Storm DragonandClaude Opus 5.5 4ef866717c Keyboard and game controller support through actions, with rebinding and rumble.
Games name their actions with default keys and controller inputs and ask
Controls whether they are held, pressed or how far they are pushed. Library
menus, text display, message boxes, cut scenes, power bars and pause work
with a controller. controls_menu lets players rebind and set rumble; only
changes from the defaults are saved in config.ini.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:17:31 -05:00
Storm Dragon 7e50223dde Improvements to the menu system. 2026-11-29 01:29:31 -05:00
Storm DragonandClaude Opus 5.5 80ddfdcd34 Translate the library's own text, in its own gettext domain
Everything the library speaks or shows itself is marked for
translation in a libstormgames domain, separate from any game's, so
one translation serves every game: the text box, the text window,
speech history, game_menu's own items, learn_sounds, instructions,
credits, donate and the high scores. Sentences built from pieces are
whole sentences with named placeholders now, such as
"{character} deleted".

set_language(code) chooses the language, so a game that lets players
pick one can make the library speak it too; with no call it follows
the system, and falls back to English. Translations go in
locales/<language>/LC_MESSAGES/libstormgames.po, and
tools/update-translations.sh extracts the text into
locales/libstormgames.pot and compiles them.

The text box now names symbols when moving over or deleting them, as
it already did when typing, and get_input's default prompt is
translated. Game.display_text no longer drops the first and last
lines when Space reads them all or T copies them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:10:19 -05:00