Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. void apresentamap(void) {
  2. clear();
  3. for (int i = 0; i < 24; i++) {
  4. for(int j = 0; j < 35; j++) {
  5. if(map[i][j].saida == 1) {
  6. attron(COLOR_PAIR(3));
  7. addch(' ');
  8. }
  9. else if(map[i][j].letra == player.letra) {
  10. attron(COLOR_PAIR(6));
  11. addch('S');
  12. }
  13. else if(map[i][j].jogador == 1) {
  14. attron(COLOR_PAIR(6));
  15. addch('A');
  16. }
  17. else if(map[i][j].born == 1) {
  18. attron(COLOR_PAIR(2));
  19. addch(' ');
  20. }
  21. else if(map[i][j].blocoindustrutivel == 1){
  22. attron(COLOR_PAIR(4));
  23. addch(map[i][j].letra);
  24. }
  25. else if(map[i][j].explosao == 1) {
  26. attron(COLOR_PAIR(7));
  27. addch(' ');
  28. }
  29. else if(map[i][j].bloco == 1) {
  30. attron(COLOR_PAIR(5));
  31. addch(map[i][j].letra);
  32. }
  33. else if(map[i][j].inimigo == 1) {
  34. attron(COLOR_PAIR(1));
  35. addch('M');
  36. }
  37. else if(map[i][j].points == 1) {
  38. attron(COLOR_PAIR(1));
  39. addch('+');
  40. }
  41. else if(map[i][j].life == 1) {
  42. attron(COLOR_PAIR(1));
  43. addch('V');
  44. }
  45. else if(map[i][j].coletor == 1) {
  46. attron(COLOR_PAIR(1));
  47. addch('C');
  48. }
  49. else if(map[i][j].bomba == 1) {
  50. attron(COLOR_PAIR(1));
  51. addch('b');
  52. }
  53. else if(map[i][j].megabomba == 1) {
  54. attron(COLOR_PAIR(1));
  55. addch('B');
  56. }else if(map[i][j].object == 1) {
  57. attron(COLOR_PAIR(1));
  58. addch('*');
  59. }
  60. else {
  61. attron(COLOR_PAIR(1));
  62. addch(map[i][j].letra);
  63. }
  64. }
  65. }
  66. refresh();
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement