Depurando los saltos con colisiones
This commit is contained in:
@@ -51,7 +51,7 @@ private:
|
||||
void draw();
|
||||
|
||||
// Comprueba la entrada y actua
|
||||
void checkInput();
|
||||
//void checkInput();
|
||||
|
||||
// Cambia de habitación
|
||||
bool changeRoom(std::string file);
|
||||
@@ -62,6 +62,9 @@ private:
|
||||
// Comprueba si el jugador esta sobre el suelo
|
||||
void checkPlayerOnFloor();
|
||||
|
||||
// Comprueba que el jugador no atraviese ninguna pared
|
||||
void checkPlayerAndWalls();
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Game(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Lang *lang, Input *input);
|
||||
|
||||
Reference in New Issue
Block a user