forked from jaildesigner-jailgames/jaildoctors_dilemma
Transició a surface: game.cpp fet
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
#include <string> // for string
|
||||
#include <vector> // for vector
|
||||
#include "utils.h" // for Color
|
||||
class AnimatedSprite; // lines 9-9
|
||||
#include <memory>
|
||||
#include "surface.h"
|
||||
class SAnimatedSprite; // lines 9-9
|
||||
|
||||
class Credits
|
||||
{
|
||||
@@ -18,9 +20,9 @@ private:
|
||||
};
|
||||
|
||||
// Objetos y punteros
|
||||
SDL_Texture *text_texture_; // Textura para dibujar el texto
|
||||
SDL_Texture *cover_texture_; // Textura para cubrir el texto
|
||||
std::shared_ptr<AnimatedSprite> shining_sprite_; // Sprite para el brillo del corazón
|
||||
std::shared_ptr<Surface> text_surface_; // Textura para dibujar el texto
|
||||
std::shared_ptr<Surface> cover_surface_; // Textura para cubrir el texto
|
||||
std::shared_ptr<SAnimatedSprite> shining_sprite_; // Sprite para el brillo del corazón
|
||||
|
||||
// Variables
|
||||
int counter_ = 0; // Contador
|
||||
@@ -55,7 +57,7 @@ public:
|
||||
Credits();
|
||||
|
||||
// Destructor
|
||||
~Credits();
|
||||
~Credits() = default;
|
||||
|
||||
// Bucle principal
|
||||
void run();
|
||||
|
||||
Reference in New Issue
Block a user