// Startet das Tunnel Spiel void startGame(){ //Gamemode zzzzzz int gameModeChoice; // Levelscreen wird initializiert initscr(); noecho(); curs_set(0); cbreak(); // Menu Loop while((gameModeChoice = printStartMenu()) != 'q'){ switch(gameModeChoice){ case 'c': runLevel(gameModeChoice); break; case 'r': runLevel(gameModeChoice); break; case 's': runSnake(); break; default: break; clear(); refresh(); } } endwin(); return; }
//increments game one turn by updating directions and running snake void takeTurn( void ) { updateDir(); runSnake(); }