X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgame.c;h=5a846ed124dd6389a421da082905b59c953d0d00;hb=fd7b604752c0ba03c347bc2ef3ee5a8c0759bff8;hp=6df460b9501f888533906f5d011d095952cb44f9;hpb=fd189b9a43026a0efa22f0f1546e2c2cabb913d4;p=vrlugburz diff --git a/src/game.c b/src/game.c index 6df460b..5a846ed 100644 --- a/src/game.c +++ b/src/game.c @@ -1,17 +1,26 @@ #include #include "game.h" #include "opengl.h" +#include "level.h" + +struct level lvl; int game_init(void) { if(init_opengl() == -1) { return -1; } + + if(load_level(&lvl, "data/test.lvl") == -1) { + return -1; + } + return 0; } void game_shutdown(void) { + destroy_level(&lvl); } void game_display(void)