Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. void MyGame::muros6(int posx, int posy, int width, int height) {
  2. //lado arriba
  3. con.setCursor(posy, posx);
  4. con << "\x8";
  5. for (int i = 1; i < width - 1; i++)
  6. {
  7. con << "\x8";
  8. }
  9. con << "\x8";
  10.  
  11. }
  12.  
  13. void MyGame::muros7(int posx, int posy, int width, int height) {
  14.  
  15. //lado arriba
  16. con.setCursor(posy, posx);
  17. con << "\x8";
  18. for (int i = 1; i < width - 1; i++)
  19. {
  20. con << "\x8";
  21. }
  22. con << "\x8";
  23.  
  24. }
  25.  
  26. void MyGame::muros4(int posx, int posy, int width, int height) {
  27.  
  28. //lado abajo
  29. con.setCursor(posy + height, posx);
  30. con << "\x8";
  31. for (int i = 0; i < width - 2; i++)
  32. {
  33. con << "\x8";
  34. }
  35. con << "\x8";
  36.  
  37. }
  38.  
  39. void MyGame::muros5(int posx, int posy, int width, int height) {
  40.  
  41. //lado abajo
  42. con.setCursor(posy + height, posx);
  43. con << "\x8";
  44. for (int i = 0; i < width - 2; i++)
  45. {
  46. con << "\x8";
  47. }
  48. con << "\x8";
  49.  
  50. }
  51.  
  52. void MyGame::muros3(int posx, int posy, int width, int height) {
  53. //lado izquierdo
  54. con.setCursor(posy + 1, posx);
  55. for (int i = 0; i < height; i++)
  56. {
  57. con.setCursor(posy + (i + 1), posx);
  58. con << "\x8";
  59. }
  60.  
  61. //lado abajo
  62. con.setCursor(posy + height, posx);
  63. con << "\x8";
  64. for (int i = 0; i < width - 2; i++)
  65. {
  66. con << "\x8";
  67. }
  68. con << "\x8";
  69.  
  70. }
  71.  
  72. void MyGame::muros2(int posx, int posy, int width, int height) {
  73. //lado izquierdo
  74. con.setCursor(posy + 1, posx);
  75. for (int i = 0; i < height; i++)
  76. {
  77. con.setCursor(posy + (i + 1), posx);
  78. con << "\x8";
  79. }
  80.  
  81. //lado arriba
  82. con.setCursor(posy, posx);
  83. con << "\x8";
  84. for (int i = 1; i < width - 1; i++)
  85. {
  86. con << "\x8";
  87. }
  88. con << "\x8";
  89. }
  90.  
  91. void MyGame::muros(int posx, int posy, int width, int height) {
  92. con.setForecolor(CColor::White);
  93. //lado arriba
  94. con.setCursor(posy, posx);
  95. con << "\x8";
  96. for (int i = 1; i < width - 1; i++)
  97. {
  98. con << "\x8";
  99. }
  100. con << "\x8";
  101.  
  102. //lado derecho
  103. con.setCursor(posy + 1, posx + width - 1);
  104. for (int i = 0; i < height; i++)
  105. {
  106. con.setCursor(posy + (i + 1), posx + width - 1);
  107. con << "\x8";
  108. }
  109. }
  110.  
  111. void MyGame::muros1(int posx, int posy, int width, int height) {
  112.  
  113. //lado abajo
  114. con.setCursor(posy + height, posx);
  115. con << "\x8";
  116. for (int i = 0; i < width - 2; i++)
  117. {
  118. con << "\x8";
  119. }
  120. con << "\x8";
  121.  
  122. //lado derecho
  123. con.setCursor(posy + 1, posx + width - 1);
  124. for (int i = 0; i < height; i++)
  125. {
  126. con.setCursor(posy + (i + 1), posx + width - 1);
  127. con << "\x8";
  128. }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement