Progress on loading game.

This commit is contained in:
Sheldon Lee
2020-07-05 13:47:00 +01:00
parent 4307992cbc
commit e912de2a35
2 changed files with 54 additions and 3 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ int main()
startLog("log.txt");
initGame();
loadGame("test.txt");
float t = 0;
while (isRunning()) {
@@ -35,7 +36,7 @@ int main()
updateGame();
usleep(pow(10,6)*(FRAME_TIME-t));
float t = (float) (clock()-start_t) / (float) CLOCKS_PER_SEC;
t = (float) (clock()-start_t) / (float) CLOCKS_PER_SEC;
}
saveGame("test.txt");