.
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								Snakes/snakes
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Snakes/snakes
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -37,7 +37,7 @@ void gover(){ | ||||
|  | ||||
| } | ||||
|  | ||||
| void UserInput(int tmpv) { | ||||
| void UserInput(int &tmpv) { | ||||
|     nodelay(stdscr, TRUE); | ||||
|     tmpv = getch(); | ||||
|     if (tmpv != ERR) { | ||||
| @@ -74,8 +74,8 @@ void RenderField(){ | ||||
|  | ||||
| void manu(){ | ||||
|   initscr(); | ||||
|   noecho(); | ||||
|   curs_set(0); | ||||
|   //noecho(); | ||||
|   //curs_set(0); | ||||
|   win = newwin(height, width, 0, 0); | ||||
|   box(win,0,0); | ||||
|   mvwprintw(win, 1,17, ".d8888. d8b   db  .d8b.  db   dD d88888b .d8888. "); | ||||
| @@ -85,6 +85,21 @@ void manu(){ | ||||
|   mvwprintw(win, 5,17, "db   8D 88  V888 88   88 88 `88. 88.     db   8D "); | ||||
|   mvwprintw(win, 6,17, "`8888Y' VP   V8P YP   YP YP   YD Y88888P `8888Y' "); | ||||
|   mvwprintw(win,10, 35, "-Start Game-"); | ||||
|   mvwprintw(win,12,38,"-Exit-"); | ||||
|   int cur = wmove(win,12,38); | ||||
|   int cur2 = cur; | ||||
|   if (cur2 == cur){ | ||||
|     while(true){ | ||||
|         nodelay(stdscr,TRUE); | ||||
|         int inp; | ||||
|         int tinp = wgetch(win); | ||||
|         if (tinp != ERR){ | ||||
|             inp = tinp;} | ||||
|         if(inp == 10){ | ||||
|             gameover=true; | ||||
|             break;} | ||||
|     } | ||||
|   } | ||||
|   wrefresh(win); | ||||
|   wgetch(win); | ||||
|   endwin(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user