included settings into main.c

This commit is contained in:
Andreas Neumann 2018-01-18 15:48:39 +01:00
parent c60688dcf8
commit e69d2435ad

5
main.c
View File

@ -12,6 +12,7 @@
#include "startmenu.h" #include "startmenu.h"
#include "gamestate.h" #include "gamestate.h"
#include "highscores.h" #include "highscores.h"
#include "settings.h"
#include "main.h" #include "main.h"
@ -50,6 +51,9 @@ int main(int argc, char * args[]){
case Highscores: case Highscores:
HIGHSCORES_Draw(renderer); HIGHSCORES_Draw(renderer);
break; break;
case Settings:
Settings_Draw(renderer);
break;
default: default:
printf("Unknow state was updated: %d\n", gameState); printf("Unknow state was updated: %d\n", gameState);
break; break;
@ -165,6 +169,7 @@ void INITIALIZE() {
scenery = BREAKOUT_CreateDefault(); scenery = BREAKOUT_CreateDefault();
Load_Textures(renderer); Load_Textures(renderer);
HIGHSCORES_Initialize(); HIGHSCORES_Initialize();
Settings_Initialize(renderer);
printf("Initializing finished!\n"); printf("Initializing finished!\n");
} /* INITIALIZE */ } /* INITIALIZE */