Transició a surface: ending.cpp fet

This commit is contained in:
2025-03-03 20:48:31 +01:00
parent d7e0178602
commit b320030547
11 changed files with 128 additions and 134 deletions

View File

@@ -5,8 +5,8 @@
#include <memory> // for shared_ptr
#include <string> // for string
#include <vector> // for vector
class Sprite; // lines 12-12
class Texture; // lines 14-14
class SSprite; // lines 12-12
class Surface; // lines 14-14
class Ending
{
@@ -14,10 +14,10 @@ private:
// Estructuras
struct EndingTexture // Estructura con dos texturas y sprites, uno para mostrar y el otro hace de cortinilla
{
std::shared_ptr<Texture> image_texture; // Textura a mostrar
std::shared_ptr<Sprite> image_sprite; // Sprite para mostrar la textura
std::shared_ptr<Texture> cover_texture; // Textura que cubre a la otra textura
std::shared_ptr<Sprite> cover_sprite; // Sprite para mostrar la textura que cubre a la otra textura
std::shared_ptr<Surface> image_surface; // Surface a mostrar
std::shared_ptr<SSprite> image_sprite; // SSprite para mostrar la textura
std::shared_ptr<Surface> cover_surface; // Surface que cubre a la otra textura
std::shared_ptr<SSprite> cover_sprite; // SSprite para mostrar la textura que cubre a la otra textura
int cover_clip_desp; // Desplazamiento del spriteClip de la textura de cobertura
int cover_clip_height; // Altura del spriteClip de la textura de cobertura
};
@@ -42,7 +42,7 @@ private:
};
// Objetos y punteros
SDL_Texture *cover_texture_; // Textura para cubrir el texto
SDL_Texture *cover_surface_; // Surface para cubrir el texto
// Variables
int counter_; // Contador