Arreglos en la estructura i format del codi

This commit is contained in:
2025-03-02 09:32:25 +01:00
parent 193dac708f
commit b1ba5e67dc
41 changed files with 611 additions and 739 deletions

View File

@@ -1,20 +1,16 @@
#pragma once
#include <SDL2/SDL_rect.h> // Para SDL_Rect, SDL_Point
#include <SDL2/SDL_render.h> // Para SDL_Renderer
#include <string> // Para basic_string, string
#include <vector> // Para vector
#include <memory> // Para shared_ptr
#include "utils.h" // Para color_t
#include "defines.h" // Para BLOCK
#include "room.h"
#include "animated_sprite.h"
class Asset;
class Debug;
class Input;
class Resource;
class Room;
struct JA_Sound_t;
#include <SDL2/SDL_rect.h> // for SDL_Rect, SDL_Point
#include <SDL2/SDL_render.h> // for SDL_RendererFlip, SDL_FLIP_NONE
#include <memory> // for shared_ptr, __shared_ptr_access
#include <string> // for string
#include <vector> // for vector
#include "animated_sprite.h" // for AnimatedSprite
#include "defines.h" // for BORDER_TOP, BLOCK
#include "texture.h" // for Texture
#include "utils.h" // for Color
class Room; // lines 16-16
struct JA_Sound_t; // lines 17-17
enum class PlayerState
{
@@ -149,7 +145,7 @@ public:
void initSounds();
// Coloca el sprite en la posición del jugador
void placeSprite();
void placeSprite() { sprite_->setPos(x_, y_); }
// Aplica los valores de spawn al jugador
void applySpawnValues(const PlayerSpawn &spawn);