migrat a SDL3 Callback API (SDL_AppInit/Iterate/Event/Quit) (milestone 3)
- main.cpp reescrit amb SDL_MAIN_USE_CALLBACKS - Director convertit a màquina d'estats amb iterate() i handleEvent() - Seccions (Logo, Intro, Title, Game) amb iterate() i handleEvent() - Events SDL enrutats via SDL_AppEvent → Director → secció activa - Eliminat SDL_PollEvent de iterate(), events via handleEvent() - Transicions entre seccions gestionades per handleSectionTransition() - Instructions i Game (demo) delegats frame a frame des de Title Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -562,4 +562,7 @@ class Game {
|
||||
|
||||
// Indica si el juego ha terminado
|
||||
bool hasFinished() const;
|
||||
|
||||
// Procesa un evento
|
||||
void handleEvent(SDL_Event *event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user