Added GameOver Scene

This commit is contained in:
2025-12-14 10:33:06 +08:00
parent 27ff62df14
commit ad3b8d7732
12 changed files with 264 additions and 30 deletions

View File

@@ -72,6 +72,8 @@ void MainMenuUIManager::handleClick(float x, float y) {
auto logicPos = physicalToLogical(x, y, m_renderer);
for (auto& buttonPair : m_buttons) {
SDL_Log("Handling click at logical position (%d, %d)\n", logicPos.first, logicPos.second);
buttonPair.second->handleCilck(logicPos.first, logicPos.second);
if (buttonPair.second->handleCilck(logicPos.first, logicPos.second)) {
return;
}
}
}