This commit is contained in:
fl3ka 2024-06-09 12:55:40 +02:00
parent a3b2f27308
commit db6b26726d
2 changed files with 18 additions and 3 deletions

Binary file not shown.

View File

@ -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();