From f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 14 Jan 2022 14:12:14 +0100 Subject: strange behavior... I WILL find out whats going on ! --- src/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index ab6e60c..40dae71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,8 +7,8 @@ /*********************************/ #include // basic libs -#include #include +#include #include "gameplay.hpp" #include "window.hpp" @@ -27,7 +27,6 @@ int main(void) { Game* game = nullptr; std::ofstream ifs("../meta/maps/savestate"); - std::string path = "../meta/maps"; int i = 0; for (const auto& entry : @@ -83,7 +82,7 @@ int main(void) { if (IsKeyPressed(KEY_ENTER)) { std::string next("../meta/maps/"); next += game->getNext(); - ifs << game->getCurrent() ; + ifs << game->getCurrent(); delete game; CloseAudioDevice(); @@ -169,9 +168,11 @@ int main(void) { DrawText("THRESHOLD", 260, 160, 30, RAYWHITE); DrawText("CONGRATULATIONS\n", 350, 240, 30, COOLPURPLE); DrawText("KILLS :", 350, 280, 30, COOLPURPLE); - auto kills = std::to_string(game->getKills()).c_str(); - DrawText(kills, 460, 280, 30, RED); - DrawText("TIME\n", 350, 320, 30, COOLPURPLE); + auto kills = std::to_string(game->getKills()); + DrawText(kills.c_str(), 460, 280, 30, RED); + DrawText("NEXT LEVEL :\n", 350, 360, 30, COOLPURPLE); + auto next = game->getNext(); + DrawText(next.c_str(), 460, 400, 30, RED); break; } -- cgit v1.2.3