aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-14 14:12:14 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-14 14:12:14 +0100
commitf3b2fcb95f0eb21d3b1e5977659c6447ccffeb82 (patch)
tree6899f16faabe3210989792de92c8b021f112d78a /src/main.cpp
parentboss has the correct textures (diff)
downloadthreshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.gz
threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.bz2
threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.xz
threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.tar.zst
threshold-f3b2fcb95f0eb21d3b1e5977659c6447ccffeb82.zip
strange behavior... I WILL find out whats going on !
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 7 insertions, 6 deletions
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 <raylib.h> // basic libs
-#include <iostream>
#include <fstream>
+#include <iostream>
#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;
}