Fixed UIText class for non-uniform scale

This commit is contained in:
2021-07-29 08:21:45 -04:00
parent 31e16585d1
commit 363f28cb9c
6 changed files with 35 additions and 9 deletions

View File

@ -83,6 +83,9 @@ public:
break;
}
}
// ===============================================
// ON KEY UP
// ===============================================
else if (Game::event.type == SDL_KEYUP)
{
switch (Game::event.key.keysym.sym)
@ -128,6 +131,13 @@ public:
case SDLK_u:
break;
case SDLK_i:
break;
case SDLK_d:
if (Game::debugMenu == false){
Game::debugMenu = true;}
else {
Game::debugMenu = false;
}
break;
case SDLK_ESCAPE: // exit the game when Escape pressed
Game::isRunning = false;