Commit 892411d1 authored by Ivo Júnior's avatar Ivo Júnior
Browse files

Novos mapas adicionados (6, 7)

parent abc396c2
319
0
\ No newline at end of file
......@@ -19,7 +19,7 @@ char butterfly[3][6] = {"\\\\ //", " (__) ", "// \\\\"};
char explosion[3][6] = {" ", " ## ", " "};
char explosion2[3][6] = {"\\\\||//", "--##--", "//||\\\\"};
char explosion3[3][6] = {"#%$@%@", "#@ ##", "&@*@*#"}; */
char mapfile[5][100] = {"./sprites/map1.txt", "./sprites/map2.txt", "./sprites/map3.txt", "./sprites/map4.txt", "./sprites/map5.txt"};
char mapfile[7][100] = {"./sprites/map1.txt", "./sprites/map2.txt", "./sprites/map3.txt", "./sprites/map4.txt", "./sprites/map5.txt", "./sprites/map6.txt", "./sprites/map7.txt"};
int colors[8][3];
......
......@@ -4,7 +4,7 @@ int menuColors[3][3];
char input[WIDTH];
int offmenuy, offmenux;
int row, col;
char mps[5] = {'a', 'b', 'c', 'd', 'e'};
char mps[7] = {'a', 'b', 'c', 'd', 'e', 'f', 'g'};
int currmap = 0;
int buffer;
......@@ -49,11 +49,11 @@ int updateMenu(menu *menu, int action) {
buffer = -1;
switch(action){
case 6:
currmap = (currmap + 1) % 5;
currmap = (currmap + 1) % 6;
menu->grid[21][22] = mps[currmap];
break;
case 4:
currmap = currmap == 0 ? 4 : currmap - 1;
currmap = currmap == 0 ? 6 : currmap - 1;
menu->grid[21][22] = mps[currmap];
break;
case 1:
......@@ -122,6 +122,9 @@ void renderMenu(menu *menu){
case('e'):
renderChar(E, i, j, offmenux, offmenuy, 2);
break;
case('f'):
renderChar(F, i, j, offmenux, offmenuy, 2);
break;
case('g'):
renderChar(G, i, j, offmenux, offmenuy, 2);
break;
......
......@@ -36,6 +36,7 @@ char B[3][6] = {" __ ", " |__) ", " |__) "};
char C[3][6] = {" __ ", " | ", " |__ "};
char D[3][6] = {" __ ", " | \\ ", " |__/ "};
char E[3][6] = {" __ ", " |__ ", " |__ "};
char F[3][6] = {" __ ", " |__ ", " | "};
char G[3][6] = {" __ ", " | _ ", " |__| "};
char H[3][6] = {" ", " |__| ", " | | "};
char I[3][6] = {" ___ ", " | ", " _|_ "};
......
......@@ -49,6 +49,7 @@ char B[3][6];
char C[3][6];
char D[3][6];
char E[3][6];
char F[3][6];
char G[3][6];
char H[3][6];
char I[3][6];
......
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