added character position saving
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user