Fix emulator compilation and crash, and implement Monopoly payment modal

This commit is contained in:
Adolfo Reyna
2026-02-06 23:13:32 -05:00
parent 75e17fb26b
commit 64f61759d7
10 changed files with 309 additions and 66 deletions

View File

@@ -306,8 +306,8 @@ int main()
// Initialize renderer and GUI system
LowLevelRenderer renderer(bit_buffer, V_WIDTH, V_HEIGHT);
renderer.set_font(&font_5x5_obj);
LowLevelGUI gui = LowLevelGUI(&renderer, font_BMplain_obj);
renderer.set_font(&font_homespun_obj);
LowLevelGUI gui = LowLevelGUI(&renderer, font_homespun_obj);
// Initialize touch screen using abstraction FIRST (before InputManager needs it)
touch = LowLevelTouch::create((TouchType)TOUCH_TYPE_SELECTED, V_WIDTH, V_HEIGHT,
@@ -353,7 +353,9 @@ int main()
launcher.register_game("Monopoly", "Classic property trading game",
[](uint16_t w, uint16_t h, LowLevelRenderer* r, LowLevelGUI* g, InputManager* im) -> Game* {
return new MonopolyGame(w, h, r, g, im);
// For Feather TFT (480x320), reduce width to 430 to make room for sidebar buttons
uint16_t game_w = (w == 480) ? 430 : w;
return new MonopolyGame(game_w, h, r, g, im);
});
launcher.register_game("Demo Game", "Simple test game",