Merge branch 'master' of https://gitea.sustancia.synology.me/JailDesigner/jaildoctors_dilemma
This commit is contained in:
@@ -93,7 +93,7 @@ void Game::checkEventHandler()
|
||||
section.name = SECTION_PROG_TITLE;
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_D:
|
||||
case SDL_SCANCODE_G:
|
||||
debug->switchEnabled();
|
||||
options->cheat.invincible = debug->getEnabled();
|
||||
board.music = !debug->getEnabled();
|
||||
@@ -160,6 +160,22 @@ void Game::checkEventHandler()
|
||||
switchPalette();
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_W:
|
||||
goToRoom(BORDER_TOP);
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_A:
|
||||
goToRoom(BORDER_LEFT);
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_S:
|
||||
goToRoom(BORDER_BOTTOM);
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_D:
|
||||
goToRoom(BORDER_RIGHT);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -535,4 +551,14 @@ int Game::getTotalItems()
|
||||
}
|
||||
|
||||
return items;
|
||||
}
|
||||
|
||||
// Va a la habitación designada
|
||||
void Game::goToRoom(int border)
|
||||
{
|
||||
const std::string roomName = room->getRoom(border);
|
||||
if (changeRoom(roomName))
|
||||
{
|
||||
currentRoom = roomName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user