Newer
Older
initMultiplatform(); // init stuff.
printf("\e[7\e[?25l");//save cursor state and turn invisible cursor
loop(&map, tickspeed, repeatMap, feedAmount, canBite, foodText, foodLen);
printf("\e[8\e[2JGAME OVER...\n");
unisleep(2000);
endMultiplatformLib();
printf("\npress any key to continue\n");
getchar();
return 0;
}
/*
int main(int argc, char const *argv[])
{
return core(argc, argv);
}
*/
/**
* debugger main function
* in debug mode, starts the core with correct params
* in release mode, it will use user input files.
//int walltest; //warning: unused variable ‘walltest’ [-Wunused-variable]
char const *array[] = {argv[0], "map1.txt"}; // set the debug input
//return 0, ret; //Miért van ez a függvény tele szeméttel??? pl 0, smt...
return ret; // így szép.