Skip to content
Snippets Groups Projects
Commit 915575be authored by Michael's avatar Michael
Browse files

added comments to main.c , end of function currently redundant

parent 363fb027
No related branches found
No related tags found
No related merge requests found
#include "main.h"
//V: SDL2 is installed
//N: Game is closed
//E: You played the game
int main(void) {
// Initialiserung des Zufallgenerators
srand(time(NULL));
//Initiiert window und renderer
if (SDL_Init(SDL_INIT_VIDEO) != 0){
SDL_Log("SDL konnte nicht initialisiert werden! SDL_Error: %s\n",SDL_GetError());
return(-1);
......@@ -37,20 +41,19 @@ int main(void) {
return(-1);
};
//Initialisierung der Bilder
//Initialisierung der Bilder und Fonts
if (init(renderer)){
printf("Fehler beim laden der Bilder");
return(-1);
}
//Lädt den Titelbildschirm
title_screen(renderer);
int theme;
bool change_Map = true;
while (true) {
if (change_Map){
theme = startscreen(renderer);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment