Ya se pueden pillar los items. Falta llevar el control de los iterms conseguidos
This commit is contained in:
@@ -39,7 +39,8 @@ private:
|
||||
section_t mSection; // Seccion actual dentro del juego
|
||||
std::string mCurrentRoom; // Fichero de la habitación actual
|
||||
player_t mSpawnPoint; // Lugar de la habitación donde aparece el jugador
|
||||
|
||||
bool mDebug; // Indica si el modo debug está activo
|
||||
|
||||
// Inicializa las variables
|
||||
void init();
|
||||
|
||||
@@ -53,7 +54,7 @@ private:
|
||||
void draw();
|
||||
|
||||
// Comprueba la entrada y actua
|
||||
// void checkInput();
|
||||
void checkInput();
|
||||
|
||||
// Cambia de habitación
|
||||
bool changeRoom(std::string file);
|
||||
@@ -70,6 +71,9 @@ private:
|
||||
// Comprueba las colisiones del jugador con los enemigos
|
||||
bool checkPlayerAndEnemies();
|
||||
|
||||
// Comprueba las colisiones del jugador con los objetos
|
||||
void checkPlayerAndItems();
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Game(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Lang *lang, Input *input);
|
||||
|
||||
Reference in New Issue
Block a user