Commit 4d306dbd authored by Ivo Júnior's avatar Ivo Júnior
Browse files

impressao do menu cuidada

parent 20d8518e
000000000000000000000000000000000000000
011111111111111111111111111111111111110
010000000000000000000000000000000000010
010111100111101000011100011110111000010
010100010100101000010010010000100100010
010100010100101000010001011100101000010
010100100100101000010001011100110000010
010100010100101000010010010000101000010
010111100111101111011100011110100100010
010000000000000000000000000000000000010
010000000000011100000100011111010001010
010000000000010010001010010000010001010
010000000000010001010001011111011111010
010000000000010001011111000001011111010
010000000000010010010001000001010001010
010000000000011100010001011111010001010
010000000000000000000000000000000000010
012222222222222222222222222222222222210
012111122111121222211122211112111222210
012122212122121222212212212222122122210
012122212122121222212221211122121222210
012122122122121222212221211122112222210
012122212122121222212212212222121222210
012111122111121111211122211112122122210
012222222222222222222222222222222222210
012222222222211122222122211111212221210
012222222222212212221212212222212221210
012222222222212221212221211111211111210
012222222222212221211111222221211111210
012222222222212212212221222221212221210
012222222222211122212221211111212221210
012222222222222222222222222222222222210
011111111111111111111111111111111111110
000000000000000000000000000000000000000
00000000high0score:0######0000000000000
00000000last000000:0######0000000000000
0000<0>00000000cave0a000000000000000000
00000000high0score:00000000000000000000
00000000last000000:00000000000000000000
0000<0>00000000cave00000000000000000000
000000000000000000000000000000000enter0
......@@ -30,52 +30,52 @@ char nine[3][6] = {" __ ",
char zero[3][6] = {" __ ",
" | | ",
" |__| "};*/
char a[3][6] = {" __ ",
char A[3][6] = {" __ ",
" |__| ",
" | | "};
char b[3][6] = {" __ ",
char B[3][6] = {" __ ",
" | ) ",
" |__) "};
char c[3][6] = {" __ ",
char C[3][6] = {" __ ",
" | ",
" |__ "};
char d[3][6] = {" __ ",
char D[3][6] = {" __ ",
" | \\ ",
" |__/ "};
char e[3][6] = {" __ ",
char E[3][6] = {" __ ",
" |__ ",
" |__ "};
char g[3][6] = {" __ ",
char G[3][6] = {" __ ",
" | _ ",
" |__| "};
char h[3][6] = {" ",
char H[3][6] = {" ",
" |__| ",
" | | "};
char i[3][6] = {" ___ ",
char I[3][6] = {" ___ ",
" | ",
" _|_ "};
char l[3][6] = {" ",
char L[3][6] = {" ",
" | ",
" |__ "};
char n[3][6] = {" ",
char N[3][6] = {" ",
" |\\ | ",
" | \\| "};
char r[3][6] = {" __ ",
char R[3][6] = {" __ ",
" |__| ",
" | \\ "};
char s[3][6] = {" __ ",
char S[3][6] = {" __ ",
" |__ ",
" __| "};
char t[3][6] = {" ___ ",
char T[3][6] = {" ___ ",
" | ",
" | "};
char v[3][6] = {" ",
char V[3][6] = {" ",
" \\ / ",
" \\/ "};
char sl[3][6] = {" ",
char SL[3][6] = {" ",
" /___ ",
" \\ "};
char sr[3][6] = {" ",
char SR[3][6] = {" ",
" ___\\ ",
" / "};
char input[WIDTH];
......@@ -99,7 +99,86 @@ void readFileMenu(menu *menu) {
offmenux = (col / 2) - (20 * 6);
}
void renderMenu(){
for (i = 0; i < WIDTH; i++) {
for (j = 0; j < HEIGHT; j++) {
switch (m->grid[i][j]) {
case('0'):
for (k = 0; k < 3; k++)
for (l = 0; l < 6; l++)
mvprintw(3*j+k+offy, 6*i+l+offx, "%c", ' ');
break;
case('1'):
renderChar(one, i, j, offmenux, offmenuy);
break;
case('2'):
renderChar(two, i, j, offmenux, offmenuy);
break;
case('h'):
renderChar(H, i, j, offmenux, offmenuy);
break;
case('i'):
renderChar(I, i, j, offmenux, offmenuy);
break;
case('g'):
renderChar(G, i, j, offmenux, offmenuy);
break;
case('s'):
renderChar(S, i, j, offmenux, offmenuy);
break;
case('c'):
renderChar(C, i, j, offmenux, offmenuy);
break;
case('o'):
renderChar(zero, i, j, offmenux, offmenuy);
break;
case('r'):
renderChar(R, i, j, offmenux, offmenuy);
break;
case('e'):
renderChar(E, i, j, offmenux, offmenuy);
break;
case('l'):
renderChar(L, i, j, offmenux, offmenuy);
break;
case('a'):
renderChar(A, i, j, offmenux, offmenuy);
break;
case('t'):
renderChar(T, i, j, offmenux, offmenuy);
break;
case('<'):
renderChar(SL, i, j, offmenux, offmenuy);
break;
case('>'):
renderChar(SR, i, j, offmenux, offmenuy);
break;
case('c'):
renderChar(C, i, j, offmenux, offmenuy);
break;
case('v'):
renderChar(V, i, j, offmenux, offmenuy);
break;
case('n'):
renderChar(N, i, j, offmenux, offmenuy);
break;
void HandleMenu(){
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment