Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void apresentamap(void) {
- clear();
- for (int i = 0; i < 24; i++) {
- for(int j = 0; j < 35; j++) {
- if(map[i][j].saida == 1) {
- attron(COLOR_PAIR(3));
- addch(' ');
- }
- else if(map[i][j].letra == player.letra) {
- attron(COLOR_PAIR(6));
- addch('S');
- }
- else if(map[i][j].jogador == 1) {
- attron(COLOR_PAIR(6));
- addch('A');
- }
- else if(map[i][j].born == 1) {
- attron(COLOR_PAIR(2));
- addch(' ');
- }
- else if(map[i][j].blocoindustrutivel == 1){
- attron(COLOR_PAIR(4));
- addch(map[i][j].letra);
- }
- else if(map[i][j].explosao == 1) {
- attron(COLOR_PAIR(7));
- addch(' ');
- }
- else if(map[i][j].bloco == 1) {
- attron(COLOR_PAIR(5));
- addch(map[i][j].letra);
- }
- else if(map[i][j].inimigo == 1) {
- attron(COLOR_PAIR(1));
- addch('M');
- }
- else if(map[i][j].points == 1) {
- attron(COLOR_PAIR(1));
- addch('+');
- }
- else if(map[i][j].life == 1) {
- attron(COLOR_PAIR(1));
- addch('V');
- }
- else if(map[i][j].coletor == 1) {
- attron(COLOR_PAIR(1));
- addch('C');
- }
- else if(map[i][j].bomba == 1) {
- attron(COLOR_PAIR(1));
- addch('b');
- }
- else if(map[i][j].megabomba == 1) {
- attron(COLOR_PAIR(1));
- addch('B');
- }else if(map[i][j].object == 1) {
- attron(COLOR_PAIR(1));
- addch('*');
- }
- else {
- attron(COLOR_PAIR(1));
- addch(map[i][j].letra);
- }
- }
- }
- refresh();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement