diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/GameInitDispose.cpp | 8 | ||||
-rw-r--r-- | src/GameLoop.cpp | 2 | ||||
-rw-r--r-- | src/Sprites.h | 1 |
4 files changed, 6 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index 67415cd..a9e49e2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build/ zig-cache/ zig-out/ config.txt +highscore.txt diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index b791f74..92a9f89 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -2205,11 +2205,11 @@ int Game::InitGL(void) } // TODO: Read high score - ifstream ipstream2("Data/Highscore"); + ifstream ipstream2("highscore.txt"); if(!ipstream2) { - highscore=0; - beatgame=0; - ofstream opstream("Data/Highscore"); + highscore = 0; + beatgame = 0; + ofstream opstream("highscore.txt"); opstream << highscore; opstream << "\n"; opstream << beatgame; diff --git a/src/GameLoop.cpp b/src/GameLoop.cpp index ab8d545..2fa7fc1 100644 --- a/src/GameLoop.cpp +++ b/src/GameLoop.cpp @@ -309,7 +309,7 @@ void Game::EventLoop() if (score > highscore) { highscore=score; /* TODO */ - ofstream opstream("Data/Highscore"); + ofstream opstream("highscore.txt"); opstream << highscore; opstream << "\n"; opstream << beatgame; diff --git a/src/Sprites.h b/src/Sprites.h index 155258b..5b2b0f9 100644 --- a/src/Sprites.h +++ b/src/Sprites.h @@ -96,5 +96,4 @@ public: void LoadRainTexture(char *fileName); ~Sprites(); }; - #endif // BLACKSHADES_SPRITES_H |