Commit 20d8518e authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei
Browse files

Correção menu

parent c92959e2
......@@ -15,4 +15,9 @@ typedef struct {
int diamonds;
} map;
typedef struct {
FILE *sprite;
char grid[WIDTH][HEIGHT];
} menu;
#endif
#include<menu.h>
#include "menu.h"
char one[3][6] = {" ",
/*char one[3][6] = {" ",
" -| ",
" _|_ "};
char two[3][6] = {" __ ",
......@@ -29,7 +29,7 @@ char nine[3][6] = {" __ ",
" _/ "};
char zero[3][6] = {" __ ",
" | | ",
" |__| "};
" |__| "};*/
char a[3][6] = {" __ ",
" |__| ",
" | | "};
......@@ -40,7 +40,7 @@ char c[3][6] = {" __ ",
" | ",
" |__ "};
char d[3][6] = {" __ ",
" | \ ",
" | \\ ",
" |__/ "};
char e[3][6] = {" __ ",
" |__ ",
......@@ -58,11 +58,11 @@ char l[3][6] = {" ",
" | ",
" |__ "};
char n[3][6] = {" ",
" |\ | ",
" | \| "};
" |\\ | ",
" | \\| "};
char r[3][6] = {" __ ",
" |__| ",
" | \ "};
" | \\ "};
char s[3][6] = {" __ ",
" |__ ",
" __| "};
......@@ -70,14 +70,17 @@ char t[3][6] = {" ___ ",
" | ",
" | "};
char v[3][6] = {" ",
" \ / ",
" \/ "};
char <[3][6] = {" ",
" \\ / ",
" \\/ "};
char sl[3][6] = {" ",
" /___ ",
" \ "};
char >[3][6] = {" ",
" ___\ ",
" \\ "};
char sr[3][6] = {" ",
" ___\\ ",
" / "};
char input[WIDTH];
int offmenuy, offmenux;
int row, col;
void readFileMenu(menu *menu) {
int i, j;
......@@ -89,7 +92,7 @@ void readFileMenu(menu *menu) {
menu->grid[j][i] = input[j];
}
}
fclose(m->sprite);
fclose(menu->sprite);
getmaxyx(stdscr, row, col);
offmenuy = (row / 2) - (12 * 3);
......
#ifndef _MENU_H
#define _MENU_H
#include "utils.h"
#include "entity.h"
#endif
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