forked from jaildesigner-jailgames/jaildoctors_dilemma
Trabajando con las rampas
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
#include <sstream>
|
||||
|
||||
// Constructor
|
||||
Player::Player(player_t ini, std::string tileset, std::string animation, SDL_Renderer *renderer, Asset *asset, Input *input, Room *room)
|
||||
Player::Player(player_t ini, std::string tileset, std::string animation, SDL_Renderer *renderer, Asset *asset, Input *input, Room *room, Debug *debug)
|
||||
{
|
||||
// Obten punteros a objetos
|
||||
this->asset = asset;
|
||||
this->renderer = renderer;
|
||||
this->input = input;
|
||||
this->room = room;
|
||||
this->debug = debug;
|
||||
|
||||
// Crea objetos
|
||||
texture = new LTexture(renderer, asset->get(tileset));
|
||||
@@ -241,6 +242,7 @@ void Player::move()
|
||||
else
|
||||
{
|
||||
tile_e slope = checkSlopes();
|
||||
debug->add("SLOPE = " + std::to_string(slope));
|
||||
if (slope != t_empty)
|
||||
{ // Cuesta hacia la derecha
|
||||
if (slope == t_slope_r)
|
||||
|
||||
Reference in New Issue
Block a user