Esempio n. 1
0
// 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;
}
Esempio n. 2
0
//increments game one turn by updating directions and running snake
void takeTurn( void ) {
	updateDir();
	runSnake();
}