Main Escape Function

This commit is contained in:
Michael Chen 2018-01-18 13:15:12 +01:00
parent 02c4341c32
commit d3a6dada59

6
main.c
View File

@ -73,13 +73,17 @@ int main(int argc, char * args[]){
printf("Unknow state was updated: %d\n", gameState); printf("Unknow state was updated: %d\n", gameState);
break; break;
} }
// DrawText(renderer, "FICK DICH");
SDL_RenderPresent(renderer); SDL_RenderPresent(renderer);
} }
QUIT(); QUIT();
return 0; return 0;
} /* main */ } /* main */
void GAME_Escape(){
running = false;
printf("GAME_Escape was called!\n");
}
void GAME_ChangeState(GameState state){ void GAME_ChangeState(GameState state){
gameState = state; gameState = state;
switch (gameState) { switch (gameState) {