Fix emulator compilation and crash, and implement Monopoly payment modal
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user