Save and load the current game on quit/start
commit21434f1913159483172db297db3c4f792ba9274a
authorThomas Perl <thp@perli.net>
Fri, 13 Feb 2009 17:29:45 +0000 (13 18:29 +0100)
committerThomas Perl <thp@perli.net>
Fri, 13 Feb 2009 17:29:45 +0000 (13 18:29 +0100)
treece6c5ec704522279ecb3c8c0ad7eec0cfd271593
parent5542af261f2804485cb03ad1d3723af8aa49dc99
Save and load the current game on quit/start

Save the current gamestate in a file and re-load it
on next startup, so users can play complete games.

We're missing some input sanitizing here, but the
worst case is that Tennix won't start, in which case
the user simply has to remove the gamestate file.
TODO
game.c
game.h
makefile
tennix.c
tennix.h