ja pinta el logo en tamany 1:1

moguda la logica del main a la classe Logo
This commit is contained in:
2025-04-07 11:55:09 +02:00
parent 149a8216bc
commit a40c9a899b
6 changed files with 112 additions and 69 deletions

27
source/logo.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#include <SDL3/SDL.h>
#include <memory>
#include "surface.h"
#include "s_sprite.h"
class Logo
{
private:
bool running = true;
Uint64 ticks = 0;
std::shared_ptr<Surface> logo_surface = nullptr;
std::unique_ptr<SSprite> logo_sprite = nullptr;
void init();
void close();
void checkEvents();
void update();
void render();
public:
Logo();
~Logo();
int run();
};