Added basic saving funcionality.

This commit is contained in:
Sheldon Lee
2020-07-04 00:26:34 +01:00
parent 4e9422b672
commit 67e216d4ee
3 changed files with 29 additions and 2 deletions
+2 -2
View File
@@ -12,7 +12,6 @@
int main()
{
// framerate of the game
const int FRAME_RATE = 30;
const float FRAME_TIME = 1.f/(float)FRAME_RATE;
@@ -37,9 +36,10 @@ int main()
usleep(pow(10,6)*(FRAME_TIME-t));
float t = (float) (clock()-start_t) / (float) CLOCKS_PER_SEC;
}
saveGame("test.txt");
endGame();
endLog();
return 0;