Transició a surface acabada. Ja compila
This commit is contained in:
@@ -12,7 +12,7 @@ class Ending
|
||||
{
|
||||
private:
|
||||
// Estructuras
|
||||
struct EndingTexture // Estructura con dos texturas y sprites, uno para mostrar y el otro hace de cortinilla
|
||||
struct EndingSurface // Estructura con dos texturas y sprites, uno para mostrar y el otro hace de cortinilla
|
||||
{
|
||||
std::shared_ptr<Surface> image_surface; // Surface a mostrar
|
||||
std::shared_ptr<SSprite> image_sprite; // SSprite para mostrar la textura
|
||||
@@ -42,15 +42,15 @@ private:
|
||||
};
|
||||
|
||||
// Objetos y punteros
|
||||
SDL_Texture *cover_surface_; // Surface para cubrir el texto
|
||||
std::shared_ptr<Surface> cover_surface_; // Surface para cubrir el texto
|
||||
|
||||
// Variables
|
||||
int counter_; // Contador
|
||||
int pre_counter_; // Contador previo
|
||||
int cover_counter_; // Contador para la cortinilla
|
||||
Uint32 ticks_; // Contador de ticks para ajustar la velocidad del programa
|
||||
std::vector<EndingTexture> sprite_texts_; // Vector con los sprites de texto con su cortinilla
|
||||
std::vector<EndingTexture> sprite_pics_; // Vector con los sprites de texto con su cortinilla
|
||||
std::vector<EndingSurface> sprite_texts_; // Vector con los sprites de texto con su cortinilla
|
||||
std::vector<EndingSurface> sprite_pics_; // Vector con los sprites de texto con su cortinilla
|
||||
int current_scene_; // Escena actual
|
||||
std::vector<SceneData> scenes_; // Vector con los textos e imagenes de cada escena
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
Ending();
|
||||
|
||||
// Destructor
|
||||
~Ending();
|
||||
~Ending() = default;
|
||||
|
||||
// Bucle principal
|
||||
void run();
|
||||
|
||||
Reference in New Issue
Block a user