forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya carga las imagenes del juego y la demo desde la cache de rescursos
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "common/asset.h"
|
||||
#include "common/debug.h"
|
||||
#include "common/input.h"
|
||||
#include "common/resource.h"
|
||||
#include "common/utils.h"
|
||||
#include "const.h"
|
||||
#include "room.h"
|
||||
@@ -38,6 +39,7 @@ public:
|
||||
// Objetos y punteros
|
||||
SDL_Renderer *renderer; // El renderizador de la ventana
|
||||
Input *input; // Objeto para gestionar la entrada
|
||||
Resource *resource; // Objeto con los recursos
|
||||
Asset *asset; // Objeto con la ruta a todos los ficheros de recursos
|
||||
Room *room; // Objeto encargado de gestionar cada habitación del juego
|
||||
Texture *texture; // Textura con los graficos del enemigo
|
||||
@@ -128,7 +130,7 @@ public:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Player(player_t ini, std::string tileset, std::string animation, SDL_Renderer *renderer, Asset *asset, options_t *options, Input *input, Room *room, Debug *debug);
|
||||
Player(player_t ini, std::string png, std::string animation, SDL_Renderer *renderer, Resource *resource, Asset *asset, options_t *options, Input *input, Room *room, Debug *debug);
|
||||
|
||||
// Destructor
|
||||
~Player();
|
||||
|
||||
Reference in New Issue
Block a user