Skip to content

Commit

Permalink
Moved paths debug to F9.
Browse files Browse the repository at this point in the history
- Before it was on P button
  • Loading branch information
xGauss05 committed Dec 18, 2022
1 parent 168291d commit 354d358
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Game/Source/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 354d358

Please sign in to comment.