Retocado un poco el game over

This commit is contained in:
2022-11-07 16:45:02 +01:00
parent 81eeb1776a
commit 07b950724a
4 changed files with 59 additions and 28 deletions

View File

@@ -30,6 +30,7 @@ private:
AnimatedSprite *tvSprite; // Sprite con el televisor
// Variables
int preCounter; // Contador previo
int counter; // Contador
section_t section; // Estado del bucle principal para saber si continua o se sale
Uint32 ticks; // Contador de ticks para ajustar la velocidad del programa
@@ -56,6 +57,9 @@ private:
// Dibuja los sprites
void renderSprites();
// Actualiza los contadores
void updateCounters();
public:
// Constructor
GameOver(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *asset, options_t *options);