From 354d3588951403c58ef3fe67508d7a9d35c86246 Mon Sep 17 00:00:00 2001 From: xGauss05 Date: Sun, 18 Dec 2022 12:15:57 +0100 Subject: [PATCH] Moved paths debug to F9. - Before it was on P button --- Game/Source/Debug.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Game/Source/Debug.cpp b/Game/Source/Debug.cpp index 61b80ae..d13d8e4 100644 --- a/Game/Source/Debug.cpp +++ b/Game/Source/Debug.cpp @@ -95,8 +95,12 @@ bool Debug::Update(float dt) // Enable/Disable debug camera if (app->input->GetKey(SDL_SCANCODE_F8) == KEY_DOWN) debugCamera = !debugCamera; - // Enable/Disable hitboxes - if (app->input->GetKey(SDL_SCANCODE_F9) == KEY_DOWN) hitboxes = !hitboxes; + // Enable/Disable hitboxes/paths + if (app->input->GetKey(SDL_SCANCODE_F9) == KEY_DOWN) + { + hitboxes = !hitboxes; + paths = !paths; + } // Enable/Disable godmode if (app->input->GetKey(SDL_SCANCODE_F10) == KEY_DOWN) @@ -128,9 +132,6 @@ bool Debug::Update(float dt) // Insta-kill if (app->input->GetKey(SDL_SCANCODE_O) == KEY_DOWN) app->scene->player->isDead = true; - // Enable/Disable paths - if (app->input->GetKey(SDL_SCANCODE_P) == KEY_DOWN) paths = !paths; - // Enable/Disable preference matrix if (app->input->GetKey(SDL_SCANCODE_M) == KEY_DOWN) preferenceMatrix = !preferenceMatrix; @@ -164,9 +165,9 @@ bool Debug::PostUpdate() { DebugDraw(); - SDL_Rect rect({ 5,5,300,120 }); + SDL_Rect rect({ 5,5,310,120 }); app->render->DrawRectangle(rect, 10, 10, 10, 150, true, false); - rect = SDL_Rect({ 305,5,250,50 }); + rect = SDL_Rect({ 315,5,230,40 }); app->render->DrawRectangle(rect, 10, 10, 10, 150, true, false); app->font->BlitText(10, 10, 0, "Press F1 to GO BACK to the previous level"); @@ -177,14 +178,13 @@ bool Debug::PostUpdate() app->font->BlitText(10, 60, 0, "Press F6 to LOAD the current game state"); app->font->BlitText(10, 70, 0, "Press F7 to show game VARIABLES"); app->font->BlitText(10, 80, 0, "Press F8 to move the CAMERA freely"); - app->font->BlitText(10, 90, 0, "Press F9 to view COLLIDERS"); + app->font->BlitText(10, 90, 0, "Press F9 to view COLLIDERS, LOGIC and PATHS"); app->font->BlitText(10, 100, 0, "Press F10 to activate GOD MODE"); app->font->BlitText(10, 110, 0, "Press F11 to Enable/Disable FPS cap to 30"); app->font->BlitText(320, 10, 0, "Press I to instantly WIN"); app->font->BlitText(320, 20, 0, "Press O to KILL the player"); - app->font->BlitText(320, 30, 0, "Press P to show PATHS"); - app->font->BlitText(320, 40, 0, "Press M to show preference map"); + app->font->BlitText(320, 30, 0, "Press M to show preference map"); } else { app->font->BlitText(10, 10, 0, "Press F4 to ENABLE debug mode");