mjendruk / mammut

Highspeed-Gravity Racer for Game Programmig Course at HPI
Other
4 stars 0 forks source link

Persistent highscores #83

Closed karyon closed 10 years ago

karyon commented 10 years ago

write/read highscores from/to a file. fixes #65.

removed the default highscore. i'd propose new ones:

Max: 9000 Caro: 4000 Johannes: 2000

imo this would require the walls to let you die at EXACTLY 1000_n. last time i checked it was 1000_n-1. but we can leave that for another issue.

mjendruk commented 10 years ago

A common thing for file formats is a random chosen magic number at the beginning of the file. for glraw files for example it's the first 4 characters of the md5 of "glraw". link

karyon commented 10 years ago

adressed everything. :shipit: ?

carolinfiedler commented 10 years ago

i’ll change the wall position to currentPosition + 1 in the proeduralLevel branch

mjendruk commented 10 years ago

the file path maybe should be something else when we deploy it. but we can discuss this later, so :shipit:

karyon commented 10 years ago

i regenerated a random number until i had one that i considered sexy enough for our project.

karyon commented 10 years ago

manually merged.