added character position saving

This commit is contained in:
2025-09-03 17:03:39 +02:00
parent 7a7d0ad6d7
commit d21606a3b5
3 changed files with 37 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#include <iostream>
#include <fstream>
using namespace std;
void SaveGame(int x, int y) {
ofstream outfile("save.json");
outfile << x << " " << y << std::endl;
outfile.close();
}