Added highscore functionality

This commit is contained in:
Tiehuis
2015-02-22 11:29:15 +13:00
parent 75ef085260
commit c8e55ed6e9
5 changed files with 90 additions and 1 deletions
+2
View File
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include "highscore.h"
#include "options.h"
void print_usage(void)
@@ -77,6 +78,7 @@ struct gameoptions* parse_options(struct gameoptions *opt, int argc, char **argv
opt->spawn_rate = strtol(optarg, NULL, 10);
break;
case 'r':
highscore_reset();
exit(0);
case 'h':
print_usage();