X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgamescr.c;fp=src%2Fgamescr.c;h=18ef9e58d68aa3ae0822944926d4e394ac8a64c4;hb=cc06c5626706cf48e6e4dfa252c30af202a5030c;hp=5b4786d7e9203ed969fefa7aab84946915e44245;hpb=77eea907b4ba007632e37588b6cd7eb66c9eab07;p=gbajam22 diff --git a/src/gamescr.c b/src/gamescr.c index 5b4786d..18ef9e5 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -12,6 +12,7 @@ #include "debug.h" #include "voxscape.h" #include "data.h" +#include "scoredb.h" #define FOV 30 #define NEAR 2 @@ -441,6 +442,10 @@ static void victory(void) { total_time = timer_msec - start_time; score = 42; + + /* TODO enter name */ + save_score("???", score, total_time, 0); + save_scores(); } static inline void xform_pixel(int *xp, int *yp)