Xavistian

Versión Final (Juego)

Jun 28th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 232.41 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <conio.h>
  4. using namespace System;
  5. using namespace std;
  6. struct posctt
  7. {
  8.     int x;
  9.     int y;
  10.     int delx;
  11.     int dely;
  12.     int maxrx;
  13.     int minrx;
  14.     int maxry;
  15.     int minry;
  16. };
  17. void Timer(int & timersleep, int sleep_n, int & timer, int* vidas, int & rx, int & ry, int nv)
  18. {
  19.     timersleep += sleep_n;
  20.     if (timersleep == 400)
  21.     {
  22.         timersleep = 0;
  23.         timer--;
  24.     }
  25.     if (timer == 0)
  26.     {
  27.         vidas[nv]--;
  28.         rx = 42;
  29.         ry = 41;
  30.         timer = 180;
  31.     }
  32. }
  33. void func_Cuevas(int *cueva, int n, int*exitmovement, int & rx, int & ry, int * sumacueva)
  34. {
  35.     if (ry == 1)
  36.     {
  37.         switch (rx)
  38.         {
  39.         case 2:case 3: case 4:
  40.             cueva[0] = 1;
  41.             rx = 42;
  42.             ry = 41; break;
  43.         case 20:case 21:case 23:
  44.             cueva[1] = 1;
  45.             rx = 42;
  46.             ry = 41; break;
  47.         case 38:case 39:case 40:
  48.             cueva[2] = 1;
  49.             rx = 42;
  50.             ry = 41; break;
  51.         case 56:case 57:case 58:
  52.             cueva[3] = 1;
  53.             rx = 42;
  54.             ry = 41; break;
  55.         case 74:case 75:case 76:
  56.             cueva[4] = 1;
  57.             rx = 42;
  58.             ry = 41; break;
  59.         }
  60.     }
  61.     sumacueva[n] = cueva[0] + cueva[1] + cueva[2] + cueva[3] + cueva[4];
  62.     if (sumacueva[n] == 5)
  63.         exitmovement[n] = 0;
  64. }
  65. void Carritonegro(posctt*enemigo, int n, int &rx, int &ry, int * vidas, int nv)
  66. {
  67.     Console::BackgroundColor = ConsoleColor::Black;
  68.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  69.     cout << char(219) << char(220) << char(219);
  70.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  71.     cout << char(223) << char(32) << char(223);
  72.     /*--------------------------------------------------*/
  73.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  74.     cout << "   ";
  75.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  76.     cout << "   ";
  77.     /*--------------------------------------------------*/
  78.     if (enemigo[n].x >= 76)enemigo[n].x = 0;
  79.     enemigo[n].x = enemigo[n].x + enemigo[n].delx;
  80.     /*--------------------------------------------------*/
  81.     Console::ForegroundColor = ConsoleColor::Red;
  82.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  83.     cout << char(219) << char(220) << char(219);
  84.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  85.     cout << char(223) << char(32) << char(223);
  86.     /*--------------------------------------------------*/
  87.     if (rx >= enemigo[n].x&& rx <= enemigo[n].x + 4 && enemigo[n].y == ry)
  88.     {
  89.         Console::SetCursorPosition(rx, ry);
  90.         cout << "   ";
  91.         Console::SetCursorPosition(rx, ry + 1);
  92.         cout << "   ";
  93.         rx = 42;
  94.         ry = 41;
  95.         vidas[nv]--;
  96.     }
  97. }
  98. void CarritoAmarillo(posctt*enemigo, int n, int &rx, int &ry, int * vidas, int nv)
  99. {
  100.     Console::BackgroundColor = ConsoleColor::Black;
  101.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  102.     cout << char(219) << char(220) << char(219);
  103.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  104.     cout << char(223) << char(32) << char(223);;
  105.     /*--------------------------------------------------*/
  106.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  107.     Console::ForegroundColor = ConsoleColor::Yellow;
  108.     cout << "===";
  109.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  110.     cout << "   ";
  111.     /*--------------------------------------------------*/
  112.     if (enemigo[n].x <= 2)enemigo[n].x = 79;
  113.     enemigo[n].x = enemigo[n].x + enemigo[n].delx;
  114.     /*--------------------------------------------------*/
  115.     Console::ForegroundColor = ConsoleColor::Yellow;
  116.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  117.     cout << char(219) << char(220) << char(219);
  118.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  119.     cout << char(223) << char(32) << char(223);
  120.     /*--------------------------------------------------*/
  121.     if (rx >= enemigo[n].x&& rx <= enemigo[n].x + 4 && enemigo[n].y == ry)
  122.     {
  123.         Console::ForegroundColor = ConsoleColor::Yellow;
  124.         Console::SetCursorPosition(rx, ry);
  125.         cout << "===";
  126.         Console::SetCursorPosition(rx, ry + 1);
  127.         cout << "   ";
  128.         rx = 42;
  129.         ry = 41;
  130.         vidas[nv]--;
  131.     }
  132. }
  133. void CarritoAmarillo2(posctt*enemigo, int n, int &rx, int &ry, int * vidas, int nv)  //no pinta amarillas
  134. {
  135.     Console::BackgroundColor = ConsoleColor::Black;
  136.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  137.     cout << char(219) << char(220) << char(219);
  138.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  139.     cout << char(223) << char(32) << char(223);
  140.     /*--------------------------------------------------*/
  141.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  142.     cout << "   ";
  143.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  144.     cout << "   ";
  145.     /*--------------------------------------------------*/
  146.     if (enemigo[n].x <= 2)enemigo[n].x = 79;
  147.     enemigo[n].x = enemigo[n].x + enemigo[n].delx;
  148.     /*--------------------------------------------------*/
  149.     Console::ForegroundColor = ConsoleColor::Yellow;
  150.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  151.     cout << char(219) << char(220) << char(219);
  152.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  153.     cout << char(223) << char(32) << char(223);
  154.     /*--------------------------------------------------*/
  155.     if (rx >= enemigo[n].x&& rx <= enemigo[n].x + 4 && enemigo[n].y == ry)
  156.     {
  157.         Console::SetCursorPosition(rx, ry);
  158.         cout << "   ";
  159.         Console::SetCursorPosition(rx, ry + 1);
  160.         cout << "   ";
  161.         rx = 42;
  162.         ry = 41;
  163.         vidas[nv]--;
  164.     }
  165. } //no pinta amarillas
  166. void CarritoAmarillo2exception(posctt*enemigo, int n, int &rx, int &ry, int * vidas, int nv)
  167. {
  168.     Console::BackgroundColor = ConsoleColor::Black;
  169.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  170.     cout << char(219) << char(220) << char(219);
  171.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  172.     cout << char(223) << char(32) << char(223);
  173.     /*--------------------------------------------------*/
  174.     Console::ForegroundColor = ConsoleColor::White;
  175.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  176.     cout << "   ";
  177.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  178.     cout << "===";
  179.     /*--------------------------------------------------*/
  180.     if (enemigo[n].x <= 2)enemigo[n].x = 79;
  181.     enemigo[n].x = enemigo[n].x + enemigo[n].delx;
  182.     /*--------------------------------------------------*/
  183.     Console::ForegroundColor = ConsoleColor::Yellow;
  184.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y);
  185.     cout << char(219) << char(220) << char(219);
  186.     Console::SetCursorPosition(enemigo[n].x, enemigo[n].y + 1);
  187.     cout << char(223) << char(32) << char(223);
  188.     /*--------------------------------------------------*/
  189.     if (rx >= enemigo[n].x&& rx <= enemigo[n].x + 4 && enemigo[n].y == ry)
  190.     {
  191.         Console::SetCursorPosition(rx, ry);
  192.         cout << "   ";
  193.         Console::SetCursorPosition(rx, ry + 1);
  194.         cout << "   ";
  195.         rx = 42;
  196.         ry = 41;
  197.         vidas[nv]--;
  198.     }
  199. }
  200. void Troncozd(posctt*tronco, int n, int &rx, int & ry, int m1[43][81], int* vidas, int nv)
  201. {
  202.     Console::ForegroundColor = ConsoleColor::DarkYellow;
  203.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  204.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  205.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  206.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  207.     /*--------------------------------------------------*/
  208.     Console::BackgroundColor = ConsoleColor::Blue;
  209.     Console::ForegroundColor = ConsoleColor::Cyan;
  210.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  211.     cout << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177);
  212.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  213.     cout << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177);
  214.     /*--------------------------------------------------*/
  215.     if (tronco[n].x >= 68)tronco[n].x = 1;
  216.     tronco[n].x = tronco[n].x + tronco[n].delx;
  217.     /*--------------------------------------------------*/
  218.     Console::ForegroundColor = ConsoleColor::DarkCyan;
  219.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  220.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  221.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  222.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  223.     /*--------------------------------------------------*/
  224.     if (m1[ry][rx] == 5)
  225.     {
  226.         if (ry == tronco[n].y)
  227.         {
  228.             Console::BackgroundColor = ConsoleColor::Blue;
  229.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  230.             Console::SetCursorPosition(rx, ry);
  231.             cout << (char)192 << (char)219 << (char)217;
  232.             Console::SetCursorPosition(rx, ry + 1);
  233.             cout << (char)218 << (char)223 << (char)191;
  234.             rx++;
  235.             if (!((rx >= tronco[n].x) && (rx <= tronco[n].x + 12)))
  236.             {
  237.                 Console::BackgroundColor = ConsoleColor::Blue;
  238.                 Console::ForegroundColor = ConsoleColor::Cyan;
  239.                 Console::SetCursorPosition(rx, ry);
  240.                 cout << (char)177 << (char)177 << (char)177;
  241.                 Console::SetCursorPosition(rx, ry + 1);
  242.                 cout << (char)177 << (char)177 << (char)177;
  243.                 rx = 42;
  244.                 ry = 41;
  245.                 vidas[nv]--;
  246.             }
  247.         }
  248.     }
  249. }
  250. void Troncodz(posctt*tronco, int n, int &rx, int & ry, int m1[43][81], int* vidas, int nv)
  251. {
  252.     Console::ForegroundColor = ConsoleColor::DarkYellow;
  253.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  254.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  255.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  256.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  257.     /*--------------------------------------------------*/
  258.     Console::BackgroundColor = ConsoleColor::Blue;
  259.     Console::ForegroundColor = ConsoleColor::Cyan;
  260.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  261.     cout << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177);
  262.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  263.     cout << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177) << char(177);
  264.     /*--------------------------------------------------*/
  265.     if (tronco[n].x <= 1)tronco[n].x = 68;
  266.     tronco[n].x = tronco[n].x + tronco[n].delx;
  267.     /*--------------------------------------------------*/
  268.     Console::ForegroundColor = ConsoleColor::DarkCyan;
  269.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  270.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  271.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  272.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  273.     /*--------------------------------------------------*/
  274.     if (m1[ry][rx] == 5)
  275.     {
  276.         if (ry == tronco[n].y)
  277.         {
  278.             Console::BackgroundColor = ConsoleColor::Blue;
  279.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  280.             Console::SetCursorPosition(rx, ry);
  281.             cout << (char)192 << (char)219 << (char)217;
  282.             Console::SetCursorPosition(rx, ry + 1);
  283.             cout << (char)218 << (char)223 << (char)191;
  284.             rx--;
  285.             if (!((rx >= tronco[n].x) && (rx <= tronco[n].x + 12)))
  286.             {
  287.                 Console::BackgroundColor = ConsoleColor::Blue;
  288.                 Console::ForegroundColor = ConsoleColor::Cyan;
  289.                 Console::SetCursorPosition(rx, ry);
  290.                 cout << (char)177 << (char)177 << (char)177;
  291.                 Console::SetCursorPosition(rx, ry + 1);
  292.                 cout << (char)177 << (char)177 << (char)177;
  293.                 rx = 42;
  294.                 ry = 41;
  295.                 vidas[nv]--;
  296.             }
  297.         }
  298.     }
  299. }
  300. void Troncolavazd(posctt*tronco, int n, int &rx, int & ry, int m1[][81], int *vidas, int nv)
  301. {
  302.     if ((tronco[n].x == 41 || tronco[n].x == 68 || tronco[n].x == 14) && (tronco[n].y == 13 || tronco[n].y == 18 || tronco[n].y == 14 || tronco[n].y == 15 || tronco[n].y == 16 || tronco[n].y == 17))
  303.     {
  304.         Console::BackgroundColor = ConsoleColor::Red;
  305.         Console::SetCursorPosition(tronco[n].x - 3, tronco[n].y);
  306.         Console::ForegroundColor = ConsoleColor::Yellow;
  307.         cout << char(176) << char(176);
  308.         Console::ForegroundColor = ConsoleColor::Black;
  309.         Console::SetCursorPosition(tronco[n].x - 1, tronco[n].y);
  310.         cout << char(186);
  311.         Console::ForegroundColor = ConsoleColor::Yellow;
  312.         Console::SetCursorPosition(tronco[n].x - 3, tronco[n].y + 1);
  313.         cout << char(176) << char(176);
  314.         Console::ForegroundColor = ConsoleColor::Black;
  315.         Console::SetCursorPosition(tronco[n].x - 1, tronco[n].y + 1);
  316.         cout << char(186);
  317.     }
  318.     /*--------------------------------------------------*/
  319.     Console::ForegroundColor = ConsoleColor::DarkGray;
  320.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  321.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  322.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  323.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  324.     /*--------------------------------------------------*/
  325.     Console::BackgroundColor = ConsoleColor::Red;
  326.     Console::ForegroundColor = ConsoleColor::Yellow;
  327.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  328.     cout << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176);
  329.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  330.     cout << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176);
  331.     /*--------------------------------------------------*/
  332.     if (tronco[n].x >= 69)tronco[n].x = 0;
  333.     tronco[n].x = tronco[n].x + tronco[n].delx;
  334.     /*--------------------------------------------------*/
  335.     Console::ForegroundColor = ConsoleColor::DarkGray;
  336.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  337.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  338.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  339.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  340.     if (m1[ry][rx] == 9)
  341.     {
  342.         if (ry == tronco[n].y)
  343.         {
  344.             Console::BackgroundColor = ConsoleColor::DarkGray;
  345.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  346.             Console::SetCursorPosition(rx, ry);
  347.             cout << (char)192 << (char)219 << (char)217;
  348.             Console::SetCursorPosition(rx, ry + 1);
  349.             cout << (char)218 << (char)223 << (char)191;
  350.             rx++;
  351.             if (!((rx >= tronco[n].x) && (rx <= tronco[n].x + 12)))
  352.             {
  353.                 Console::BackgroundColor = ConsoleColor::Red;
  354.                 Console::ForegroundColor = ConsoleColor::Yellow;
  355.                 Console::SetCursorPosition(rx, ry);
  356.                 cout << (char)177 << (char)177 << (char)177;
  357.                 Console::SetCursorPosition(rx, ry + 1);
  358.                 cout << (char)177 << (char)177 << (char)177;
  359.                 rx = 42;
  360.                 ry = 41;
  361.                 vidas[nv]--;
  362.             }
  363.         }
  364.     }
  365. }
  366. void Troncolavadz(posctt*tronco, int n, int &rx, int & ry, int m1[][81], int *vidas, int nv)
  367. {
  368.     if ((tronco[n].x == 0 || tronco[n].x == 27 || tronco[n].x == 54) && (tronco[n].y == 13 || tronco[n].y == 18 || tronco[n].y == 14 || tronco[n].y == 15 || tronco[n].y == 16 || tronco[n].y == 17))
  369.     {
  370.         Console::BackgroundColor = ConsoleColor::Red;
  371.         Console::ForegroundColor = ConsoleColor::Yellow;
  372.         Console::SetCursorPosition(tronco[n].x + 12, tronco[n].y);
  373.         cout << char(176);
  374.         Console::ForegroundColor = ConsoleColor::Black;
  375.         Console::SetCursorPosition(tronco[n].x + 13, tronco[n].y);
  376.         cout << char(186);
  377.         Console::ForegroundColor = ConsoleColor::Yellow;
  378.         Console::SetCursorPosition(tronco[n].x + 14, tronco[n].y);
  379.         cout << char(176);
  380.         Console::ForegroundColor = ConsoleColor::Yellow;
  381.         Console::SetCursorPosition(tronco[n].x + 12, tronco[n].y + 1);
  382.         cout << char(176);
  383.         Console::ForegroundColor = ConsoleColor::Black;
  384.         Console::SetCursorPosition(tronco[n].x + 13, tronco[n].y + 1);
  385.         cout << char(186);
  386.         Console::ForegroundColor = ConsoleColor::Yellow;
  387.         Console::SetCursorPosition(tronco[n].x + 14, tronco[n].y + 1);
  388.         cout << char(176);
  389.     }
  390.     /*--------------------------------------------------*/
  391.     Console::ForegroundColor = ConsoleColor::DarkGray;
  392.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  393.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  394.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  395.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  396.     /*--------------------------------------------------*/
  397.     Console::BackgroundColor = ConsoleColor::Red;
  398.     Console::ForegroundColor = ConsoleColor::Yellow;
  399.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  400.     cout << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176);
  401.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  402.     cout << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176) << char(176);
  403.     /*--------------------------------------------------*/
  404.     if (tronco[n].x <= 0)tronco[n].x = 69;
  405.     tronco[n].x = tronco[n].x + tronco[n].delx;
  406.     /*--------------------------------------------------*/
  407.     Console::ForegroundColor = ConsoleColor::DarkGray;
  408.     Console::SetCursorPosition(tronco[n].x, tronco[n].y);
  409.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  410.     Console::SetCursorPosition(tronco[n].x, tronco[n].y + 1);
  411.     cout << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219) << char(219);
  412.     if (m1[ry][rx] == 9)
  413.     {
  414.         if (ry == tronco[n].y)
  415.         {
  416.             Console::BackgroundColor = ConsoleColor::DarkGray;
  417.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  418.             Console::SetCursorPosition(rx, ry);
  419.             cout << (char)192 << (char)219 << (char)217;
  420.             Console::SetCursorPosition(rx, ry + 1);
  421.             cout << (char)218 << (char)223 << (char)191;
  422.             rx--;
  423.             if (!((rx >= tronco[n].x) && (rx <= tronco[n].x + 12)))
  424.             {
  425.                 Console::BackgroundColor = ConsoleColor::Red;
  426.                 Console::ForegroundColor = ConsoleColor::Yellow;
  427.                 Console::SetCursorPosition(rx, ry);
  428.                 cout << (char)177 << (char)177 << (char)177;
  429.                 Console::SetCursorPosition(rx, ry + 1);
  430.                 cout << (char)177 << (char)177 << (char)177;
  431.                 rx = 42;
  432.                 ry = 41;
  433.                 vidas[nv]--;
  434.             }
  435.         }
  436.     }
  437. }
  438. void objeto_rebotador(posctt*rebo_obs, int n, int& rx, int& ry, int *vidas, int nv)
  439. {
  440.     Console::BackgroundColor = ConsoleColor::DarkRed;
  441.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y);
  442.     cout << char(219) << char(219) << char(219);
  443.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y + 1);
  444.     cout << char(219) << char(219) << char(219);
  445.     /*--------------------------------------------------*/
  446.     Console::BackgroundColor = ConsoleColor::Black;
  447.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y);
  448.     cout << "   ";
  449.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y + 1);
  450.     cout << "   ";
  451.     /*--------------------------------------------------*/
  452.     if (rebo_obs[n].y == rebo_obs[n].minry)rebo_obs[n].dely = 1;
  453.     if (rebo_obs[n].y == rebo_obs[n].maxry)rebo_obs[n].dely = -1;
  454.     rebo_obs[n].y = rebo_obs[n].y + rebo_obs[n].dely;
  455.     /*--------------------------------------------------*/
  456.     Console::ForegroundColor = ConsoleColor::Yellow;
  457.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y);
  458.     cout << char(219) << char(220) << char(219);
  459.     Console::SetCursorPosition(rebo_obs[n].x, rebo_obs[n].y + 1);
  460.     cout << char(223) << char(32) << char(223);
  461.     /*--------------------------------------------------*/
  462.     if (ry >= rebo_obs[n].y - 1 && ry <= rebo_obs[n].y + 2 && rx >= rebo_obs[n].x - 1 && rx <= rebo_obs[n].x + 1)
  463.     {
  464.         rx = 0;
  465.         ry = 41;
  466.         vidas[nv]--;
  467.     }
  468. }
  469. void Flecha(posctt*flecha, int n, int & rx, int & ry, int *vidas, int nv)
  470. {
  471.     Console::BackgroundColor = ConsoleColor::Black;
  472.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  473.     Console::SetCursorPosition(flecha[n].x, flecha[n].y);
  474.     cout << char(186);
  475.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 1);
  476.     cout << char(186);
  477.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 2);
  478.     cout << char(86);
  479.     /*--------------------------------------------------*/
  480.     Console::SetCursorPosition(flecha[n].x, flecha[n].y);
  481.     cout << char(32);
  482.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 1);
  483.     cout << char(32);
  484.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 2);
  485.     cout << char(32);
  486.     /*--------------------------------------------------*/
  487.     if (flecha[n].y == flecha[n].minry)flecha[n].dely = 1;
  488.     if (flecha[n].y == flecha[n].maxry)flecha[n].y = flecha[n].minry;
  489.     flecha[n].y = flecha[n].y + flecha[n].dely;
  490.     /*--------------------------------------------------*/
  491.     Console::SetCursorPosition(flecha[n].x, flecha[n].y);
  492.     cout << char(186);
  493.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 1);
  494.     cout << char(186);
  495.     Console::SetCursorPosition(flecha[n].x, flecha[n].y + 2);
  496.     cout << char(86);
  497.     /*--------------------------------------------------*/
  498.     if (ry >= flecha[n].y - 1 && ry <= flecha[n].y + 2 && rx >= flecha[n].x - 1 && rx <= flecha[n].x + 1)
  499.     {
  500.         Console::BackgroundColor = ConsoleColor::Black;
  501.         Console::SetCursorPosition(rx, ry);
  502.         cout << "   ";
  503.         Console::SetCursorPosition(rx, ry + 1);
  504.         cout << "   ";
  505.         rx = 42;
  506.         ry = 41;
  507.         vidas[nv]--;
  508.     }
  509. }
  510. void enemigo_rebotador(posctt*enemigo_rebot, int n, int & rx, int & ry, int * vidas, int nv)
  511. {
  512.     Console::BackgroundColor = ConsoleColor::Black;
  513.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  514.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  515.     cout << " ";
  516.     /*--------------------------------------------------*/
  517.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  518.     cout << " ";
  519.     /*--------------------------------------------------*/
  520.     if (enemigo_rebot[n].x == enemigo_rebot[n].minrx&&enemigo_rebot[n].y == enemigo_rebot[n].minry)
  521.     {
  522.         enemigo_rebot[n].dely = +1;
  523.         enemigo_rebot[n].delx = 0;
  524.     }
  525.     if (enemigo_rebot[n].x == enemigo_rebot[n].minrx&&enemigo_rebot[n].y == enemigo_rebot[n].maxry)
  526.     {
  527.         enemigo_rebot[n].dely = 0;
  528.         enemigo_rebot[n].delx = +1;
  529.     }
  530.     if (enemigo_rebot[n].x == enemigo_rebot[n].maxrx&&enemigo_rebot[n].y == enemigo_rebot[n].maxry)
  531.     {
  532.         enemigo_rebot[n].dely = -1;
  533.         enemigo_rebot[n].delx = 0;
  534.     }
  535.     if (enemigo_rebot[n].x == enemigo_rebot[n].maxrx&&enemigo_rebot[n].y == enemigo_rebot[n].minry)
  536.     {
  537.         enemigo_rebot[n].dely = 0;
  538.         enemigo_rebot[n].delx = -1;
  539.     }
  540.     enemigo_rebot[n].x = enemigo_rebot[n].x + enemigo_rebot[n].delx;
  541.     enemigo_rebot[n].y = enemigo_rebot[n].y + enemigo_rebot[n].dely;
  542.     /*--------------------------------------------------*/
  543.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  544.     cout << "*";
  545.     /*--------------------------------------------------*/
  546.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  547.     cout << "*";
  548.     /*--------------------------------------------------*/
  549.     if (ry >= enemigo_rebot[n].y - 1 && ry <= enemigo_rebot[n].y + 1 && rx >= enemigo_rebot[n].x - 1 && rx <= enemigo_rebot[n].x)
  550.     {
  551.         Console::BackgroundColor = ConsoleColor::Black;
  552.         Console::SetCursorPosition(rx, ry);
  553.         cout << "   ";
  554.         Console::SetCursorPosition(rx, ry + 1);
  555.         cout << "   ";
  556.         rx = 42;
  557.         ry = 41;
  558.         vidas[nv]--;
  559.     }
  560. }
  561. void enemigo_mapa8(posctt*enemigo_rebot, int n, int & rx, int & ry, int * vidas, int nv)
  562. {
  563.     Console::BackgroundColor = ConsoleColor::Black;
  564.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  565.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  566.     cout << char(32) << char(32) << char(32);
  567.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y + 1);
  568.     cout << char(32) << char(32) << char(32);
  569.     /*--------------------------------------------------*/
  570.     if (enemigo_rebot[n].x == enemigo_rebot[n].minrx&&enemigo_rebot[n].y == enemigo_rebot[n].minry)
  571.     {
  572.         enemigo_rebot[n].dely = +2;
  573.         enemigo_rebot[n].delx = 0;
  574.     }
  575.     if (enemigo_rebot[n].x == enemigo_rebot[n].minrx&&enemigo_rebot[n].y == enemigo_rebot[n].maxry)
  576.     {
  577.         enemigo_rebot[n].dely = 0;
  578.         enemigo_rebot[n].delx = +3;
  579.     }
  580.     if (enemigo_rebot[n].x == enemigo_rebot[n].maxrx&&enemigo_rebot[n].y == enemigo_rebot[n].maxry)
  581.     {
  582.         enemigo_rebot[n].dely = -2;
  583.         enemigo_rebot[n].delx = 0;
  584.     }
  585.     if (enemigo_rebot[n].x == enemigo_rebot[n].maxrx&&enemigo_rebot[n].y == enemigo_rebot[n].minry)
  586.     {
  587.         enemigo_rebot[n].dely = 0;
  588.         enemigo_rebot[n].delx = -3;
  589.     }
  590.     enemigo_rebot[n].x = enemigo_rebot[n].x + enemigo_rebot[n].delx;
  591.     enemigo_rebot[n].y = enemigo_rebot[n].y + enemigo_rebot[n].dely;
  592.     /*--------------------------------------------------*/
  593.     Console::BackgroundColor = ConsoleColor::DarkGreen;
  594.     Console::ForegroundColor = ConsoleColor::Black;
  595.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y);
  596.     cout << char(177) << char(177) << char(177);
  597.     Console::SetCursorPosition(enemigo_rebot[n].x, enemigo_rebot[n].y + 1);
  598.     cout << char(177) << char(177) << char(177);
  599.     /*--------------------------------------------------*/
  600.     if (ry >= enemigo_rebot[n].y  && ry <= enemigo_rebot[n].y + 1 && rx >= enemigo_rebot[n].x  && rx <= enemigo_rebot[n].x + 3)
  601.     {
  602.         Console::BackgroundColor = ConsoleColor::Black;
  603.         Console::SetCursorPosition(rx, ry);
  604.         cout << "   ";
  605.         Console::SetCursorPosition(rx, ry + 1);
  606.         cout << "   ";
  607.         rx = 42;
  608.         ry = 41;
  609.         vidas[nv]--;
  610.     }
  611. }
  612. void DibujaMapa(int m1[43][81])
  613. {
  614.     int x1;
  615.     int y1;
  616.     /*--------------------------------------------------*/
  617.     Console::BackgroundColor = ConsoleColor::Black;
  618.     for (int f = 0; f < 43; f++)
  619.     {
  620.         Console::SetCursorPosition(x1, y1);
  621.         for (int c = 0; c < 81; c++)
  622.         {
  623.             switch (m1[f][c])
  624.             {
  625.             case 1:
  626.                 Console::BackgroundColor = ConsoleColor::DarkRed;
  627.                 if (f == 0 && (c == 1 || c == 19 || c == 37 || c == 55 || c == 73 || c == 6 || c == 24 || c == 42 || c == 60 || c == 78))
  628.                 {
  629.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  630.                     Console::ForegroundColor = ConsoleColor::DarkGray;
  631.                     cout << char(207);
  632.                 }
  633.                 else
  634.                     if (f == 0 && ((c >= 2 && c <= 5) || (c >= 20 && c <= 23) || (c >= 38 && c <= 41) || (c >= 56 && c <= 59) || (c >= 74 && c <= 77)))
  635.                     {
  636.                         Console::BackgroundColor = ConsoleColor::DarkGreen;
  637.                         Console::ForegroundColor = ConsoleColor::DarkGray;
  638.                         cout << char(205);
  639.                     }
  640.                     else
  641.                         if ((f == 1 || f == 2) && (c == 1 || c == 19 || c == 37 || c == 55 || c == 73 || c == 6 || c == 24 || c == 42 || c == 60 || c == 78))
  642.                         {
  643.                             Console::BackgroundColor = ConsoleColor::DarkGreen;
  644.                             Console::ForegroundColor = ConsoleColor::DarkGray;
  645.                             cout << char(186);
  646.                         }
  647.                         else
  648.                         {
  649.                             Console::ForegroundColor = ConsoleColor::DarkGreen;
  650.                             cout << char(177);
  651.                         } break;
  652.                 /*--------------------------------------------------*/
  653.             case 2:
  654.                 Console::BackgroundColor = ConsoleColor::Black;
  655.                 if (f == 5 || f == 13 || f == 21 || f == 29 || f == 37)
  656.                 {
  657.                     Console::ForegroundColor = ConsoleColor::Yellow;
  658.                     cout << "=";
  659.                 }
  660.                 else
  661.                     cout << " "; break;
  662.                 /*--------------------------------------------------*/
  663.             case 3:
  664.                 Console::BackgroundColor = ConsoleColor::DarkGray;
  665.                 Console::ForegroundColor = ConsoleColor::Gray;
  666.                 cout << char(177); break;
  667.                 /*--------------------------------------------------*/
  668.             case 4:
  669.                 Console::BackgroundColor = ConsoleColor::DarkGreen;
  670.                 Console::ForegroundColor = ConsoleColor::DarkGreen;
  671.                 cout << char(176); break;
  672.                 /*--------------------------------------------------*/
  673.             case 5:
  674.                 Console::BackgroundColor = ConsoleColor::Blue;
  675.                 Console::ForegroundColor = ConsoleColor::Cyan;
  676.                 cout << char(177); break;
  677.                 /*--------------------------------------------------*/
  678.             case 6:
  679.                 Console::BackgroundColor = ConsoleColor::Black;
  680.                 Console::ForegroundColor = ConsoleColor::Black;
  681.                 cout << char(176); break;
  682.                 /*--------------------------------------------------*/
  683.             case 7:
  684.                 Console::BackgroundColor = ConsoleColor::DarkGray;
  685.                 cout << char(177); break;
  686.                 /*--------------------------------------------------*/
  687.             case 8:
  688.                 Console::BackgroundColor = ConsoleColor::DarkGray;
  689.                 cout << char(177); break;
  690.                 /*--------------------------------------------------*/
  691.             case 9:
  692.                 Console::BackgroundColor = ConsoleColor::Red;
  693.                 Console::ForegroundColor = ConsoleColor::Yellow;
  694.                 cout << char(176); break;
  695.                 /*--------------------------------------------------*/
  696.             case 10:
  697.                 Console::BackgroundColor = ConsoleColor::Black;
  698.                 if (f == 32)
  699.                 {
  700.                     Console::ForegroundColor = ConsoleColor::White;
  701.                     cout << "=";
  702.                 }
  703.                 else
  704.                     cout << " "; break;
  705.                 /*--------------------------------------------------*/
  706.             case 11:
  707.                 Console::BackgroundColor = ConsoleColor::Black;
  708.                 Console::ForegroundColor = ConsoleColor::Black;
  709.                 cout << char(219); break;
  710.                 /*--------------------------------------------------*/
  711.             case 12:
  712.                 Console::BackgroundColor = ConsoleColor::Red;
  713.                 Console::ForegroundColor = ConsoleColor::Yellow;
  714.                 cout << char(176); break;
  715.                 /*--------------------------------------------------*/
  716.             case 13:
  717.                 Console::BackgroundColor = ConsoleColor::Red;
  718.                 if ((c == 13 || c == 40 || c == 67) && (f > 12 && f < 19))
  719.                 {
  720.                     Console::ForegroundColor = ConsoleColor::Black;
  721.                     cout << char(186);
  722.                 }
  723.                 else
  724.                 {
  725.                     Console::ForegroundColor = ConsoleColor::Yellow;
  726.                     cout << char(176);
  727.                 } break;
  728.                 /*--------------------------------------------------*/
  729.             case 14:
  730.                 Console::BackgroundColor = ConsoleColor::Black;
  731.                 Console::ForegroundColor = ConsoleColor::Black;
  732.                 cout << char(219); break; break;
  733.             case 15:
  734.                 Console::BackgroundColor = ConsoleColor::DarkGreen;
  735.                 Console::ForegroundColor = ConsoleColor::White;
  736.                 cout << char(177); break;
  737.             case 16:
  738.                 Console::BackgroundColor = ConsoleColor::DarkGreen;
  739.                 Console::ForegroundColor = ConsoleColor::DarkGreen;
  740.                 cout << char(177); break;
  741.             }
  742.         }
  743.         y1++;
  744.     }
  745. }
  746. void Loser_Banner(int m1[43][81])
  747. {
  748.     Console::ForegroundColor = ConsoleColor::White;
  749.     Console::SetCursorPosition(30, 23);
  750.     cout << "-Continuar?";
  751.     Console::SetCursorPosition(30, 25);
  752.     cout << "-Si(S)";
  753.     Console::SetCursorPosition(30, 26);
  754.     cout << "-No(N)";
  755. }
  756. void Winner_Banner(int m1[43][81])
  757. {
  758.     Console::ForegroundColor = ConsoleColor::White;
  759.     Console::SetCursorPosition(30, 23);
  760.     cout << "-Continuar?";
  761.     Console::SetCursorPosition(30, 25);
  762.     cout << "-Si(S)";
  763.     Console::SetCursorPosition(30, 26);
  764.     cout << "-No(N)";
  765. }
  766. void Screen_Inicio(int m1[43][81])
  767. {
  768.     Console::SetCursorPosition(0, 1);
  769.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  770.     cout << char(207) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(207);
  771.     Console::SetCursorPosition(12, 25);
  772.     Console::ForegroundColor = ConsoleColor::White;
  773.     Console::SetCursorPosition(12, 25);
  774.     cout << "Integrantes : ";
  775.     Console::SetCursorPosition(14, 26);
  776.     cout << "- Sebastian Alessndro Bravo Trettenero";
  777.     Console::SetCursorPosition(14, 27);
  778.     cout << "- Agustin Alejandro Sanchez Maita ";
  779.     Console::SetCursorPosition(12, 29);
  780.     cout << "Profesor : ";
  781.     Console::SetCursorPosition(14, 30);
  782.     cout << "- William Bravo Garcia";
  783.     Console::SetCursorPosition(12, 32);
  784.     cout << "Carrera : ";
  785.     Console::SetCursorPosition(14, 33);
  786.     cout << "- Ingenieria de Software";
  787.     Console::SetCursorPosition(54, 28);
  788.     cout << "Seccion:";
  789.     Console::SetCursorPosition(56, 29);
  790.     cout << "- WX1A";
  791.     Console::SetCursorPosition(54, 31);
  792.     cout << "Curso : ";
  793.     Console::SetCursorPosition(56, 32);
  794.     cout << "- Programacion I";
  795.     Console::SetCursorPosition(43, 36);
  796.     cout << "2018 - I";
  797.     Console::SetCursorPosition(27, 39);
  798.     cout << "Presione cualquier tecla para continuar .";
  799.     Console::SetCursorPosition(0, 41);
  800.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  801.     cout << char(207) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(207);
  802. }
  803. void Instrucciones(int m1[43][81])
  804. {
  805.     Console::SetCursorPosition(0, 1);
  806.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  807.     cout << char(207) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(207);
  808.     Console::ForegroundColor = ConsoleColor::White;
  809.     Console::SetCursorPosition(3, 3);
  810.     cout << "Instrucciones : ";
  811.     Console::SetCursorPosition(4, 6);
  812.     cout << "Utilice las Teclas Direccionales del";
  813.     Console::SetCursorPosition(4, 7);
  814.     cout << "teclado para poder dezplazarse                        (Flecha arriba)";
  815.     Console::SetCursorPosition(4, 8);
  816.     cout << "en la direccion deseada.            (Flecha izquierda)(Flecha abajo)(Flecha derecha)";
  817.  
  818.     Console::SetCursorPosition(4, 11);
  819.     cout << "Cada nivel presenta un bonus ,";
  820.     Console::SetCursorPosition(4, 12);
  821.     cout << "cogelo para obtener una                                  " << char(201) << char(205) << char(187);
  822.     Console::SetCursorPosition(4, 13);
  823.     cout << "vida extra.                                              " << char(200) << char(205) << char(188);
  824.  
  825.     Console::SetCursorPosition(4, 16);
  826.     cout << "Para pasar de nivel , coloca tu";
  827.     Console::SetCursorPosition(4, 17);
  828.     cout << "rana en cada cueva que se                               " << char(207) << char(205) << char(205) << char(207);
  829.     Console::SetCursorPosition(4, 18);
  830.     cout << "encuentra en la parte                                   " << char(186) << char(32) << char(32) << char(186);
  831.     Console::SetCursorPosition(4, 19);
  832.     cout << "superior del escenario.                                 " << char(186) << char(32) << char(32) << char(186);
  833.  
  834.     Console::SetCursorPosition(4, 22);
  835.     cout << "Si colisionas con cualquier objeto";
  836.     Console::SetCursorPosition(4, 23);
  837.     cout << "que se mueva ,excepto los troncos ";
  838.     Console::SetCursorPosition(55, 23);
  839.     cout << char(219) << char(220) << char(219) << char(32) << char(32) << char(32) << char(186) << "     *";
  840.     Console::SetCursorPosition(55, 24);
  841.     cout << char(223) << char(32) << char(223) << char(32) << char(32) << char(32) << char(186);
  842.     Console::SetCursorPosition(58, 24);
  843.     cout << char(32) << char(32) << char(32) << char(86);
  844.     Console::SetCursorPosition(4, 24);
  845.     cout << ",perderas una vida.";
  846.  
  847.     Console::SetCursorPosition(4, 27);
  848.     cout << "Si caes al agua o lava, perderas";
  849.     Console::SetCursorPosition(4, 28);
  850.     cout << "de una a dos vidas";
  851.     Console::BackgroundColor = ConsoleColor::Blue;
  852.     Console::ForegroundColor = ConsoleColor::Cyan;
  853.     Console::SetCursorPosition(58, 28);
  854.     cout << char(177) << char(177) << char(177);
  855.     Console::SetCursorPosition(58, 29);
  856.     cout << char(177) << char(177) << char(177);
  857.     Console::BackgroundColor = ConsoleColor::Red;
  858.     Console::ForegroundColor = ConsoleColor::Yellow;
  859.     Console::SetCursorPosition(63, 28);
  860.     cout << char(177) << char(177) << char(177);
  861.     Console::SetCursorPosition(63, 29);
  862.     cout << char(177) << char(177) << char(177);
  863.     Console::SetCursorPosition(4, 29);
  864.     Console::BackgroundColor = ConsoleColor::Black;
  865.     Console::ForegroundColor = ConsoleColor::White;
  866.     cout << "respectivamente.";
  867.  
  868.     Console::SetCursorPosition(27, 39);
  869.     cout << "Presione cualquier tecla para continuar .";
  870.  
  871.     Console::SetCursorPosition(0, 41);
  872.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  873.     cout << char(207) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(205) << char(207);
  874. }
  875. void Movimiento1(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  876. {
  877.     posctt * enemigo = new posctt[15];
  878.     Random x;
  879.     int txtx = 82, txty = 16;
  880.     int timer = 180, timersleep = 0;
  881.     int *cueva = new int[5];
  882.     int bonus_x = 78, bonus_y = 17;
  883.  
  884.     int tecla;
  885.     int rx = 42;
  886.     int ry = 41;
  887.     /*--------------------------------------------------*/
  888.     enemigo[0].x = x.Next(0, 79);
  889.     enemigo[0].y = 3;
  890.     enemigo[0].delx = 2;
  891.  
  892.     enemigo[1].x = x.Next(0, 79);
  893.     enemigo[1].y = 7;
  894.     enemigo[1].delx = 1;
  895.  
  896.     enemigo[2].x = x.Next(0, 79);
  897.     enemigo[2].y = 11;
  898.     enemigo[2].delx = 2;
  899.  
  900.     enemigo[3].x = x.Next(0, 79);
  901.     enemigo[3].y = 15;
  902.     enemigo[3].delx = 2;
  903.  
  904.     enemigo[4].x = x.Next(0, 79);
  905.     enemigo[4].y = 19;
  906.     enemigo[4].delx = 1;
  907.  
  908.     enemigo[5].x = x.Next(0, 79);
  909.     enemigo[5].y = 23;
  910.     enemigo[5].delx = 2;
  911.  
  912.     enemigo[6].x = x.Next(0, 79);
  913.     enemigo[6].y = 27;
  914.     enemigo[6].delx = 1;
  915.  
  916.     enemigo[7].x = x.Next(0, 79);
  917.     enemigo[7].y = 31;
  918.     enemigo[7].delx = 2;
  919.  
  920.     enemigo[8].x = x.Next(0, 79);
  921.     enemigo[8].y = 35;
  922.     enemigo[8].delx = 1;
  923.  
  924.     enemigo[9].x = x.Next(0, 79);
  925.     enemigo[9].y = 39;
  926.     enemigo[9].delx = 2;
  927.     /*------------------------------*/
  928.     enemigo[10].x = x.Next(0, 79);
  929.     enemigo[10].y = 5;
  930.     enemigo[10].delx = -2;
  931.  
  932.     enemigo[11].x = x.Next(0, 79);
  933.     enemigo[11].y = 13;
  934.     enemigo[11].delx = -1;
  935.  
  936.     enemigo[12].x = x.Next(0, 79);
  937.     enemigo[12].y = 21;
  938.     enemigo[12].delx = -2;
  939.  
  940.     enemigo[13].x = x.Next(0, 79);
  941.     enemigo[13].y = 29;
  942.     enemigo[13].delx = -1;
  943.  
  944.     enemigo[14].x = x.Next(0, 79);
  945.     enemigo[14].y = 37;
  946.     enemigo[14].delx = -2;
  947.     /*--------------------------------------------------*/
  948.     Console::BackgroundColor = ConsoleColor::DarkGreen;
  949.     Console::ForegroundColor = ConsoleColor::Yellow;
  950.     Console::SetCursorPosition(bonus_x, bonus_y);
  951.     cout << char(201) << char(205) << char(187);
  952.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  953.     cout << char(200) << char(205) << char(188);
  954.     while (exitmovement[0])
  955.     {
  956.         switch (m1[ry][rx])
  957.         {
  958.         case 3:
  959.             Console::SetCursorPosition(rx, ry);
  960.             Console::BackgroundColor = ConsoleColor::DarkGray;
  961.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  962.             cout << (char)192 << (char)219 << (char)217;
  963.             Console::SetCursorPosition(rx, ry + 1);
  964.             Console::BackgroundColor = ConsoleColor::DarkGray;
  965.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  966.             cout << (char)218 << (char)223 << (char)191;
  967.             break;
  968.         }
  969.         if (kbhit())
  970.         {
  971.             tecla = _getch();
  972.             if (tecla == 224)
  973.             {
  974.                 switch (m1[ry][rx])
  975.                 {
  976.                 case 2:
  977.                     Console::BackgroundColor = ConsoleColor::Black;
  978.                     Console::SetCursorPosition(rx, ry);
  979.                     cout << "   ";
  980.                     Console::SetCursorPosition(rx, ry + 1);
  981.                     cout << "   ";
  982.                     if (ry == 5 || ry == 13 || ry == 21 || ry == 29 || ry == 37)
  983.                     {
  984.                         Console::ForegroundColor = ConsoleColor::Yellow;
  985.                         Console::SetCursorPosition(rx, ry);
  986.                         cout << "===";
  987.                         Console::SetCursorPosition(rx, ry + 1);
  988.                         cout << "   ";
  989.                     }
  990.                     break;
  991.                 case 3:
  992.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  993.                     Console::ForegroundColor = ConsoleColor::Gray;
  994.                     Console::SetCursorPosition(rx, ry);
  995.                     cout << char(177) << char(177) << char(177);
  996.                     Console::SetCursorPosition(rx, ry + 1);
  997.                     cout << char(177) << char(177) << char(177); break;
  998.                 case 4:
  999.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1000.                     Console::SetCursorPosition(rx, ry);
  1001.                     cout << "   ";
  1002.                     Console::SetCursorPosition(rx, ry + 1);
  1003.                     cout << "   "; break;
  1004.                 }
  1005.                 tecla = _getch();
  1006.                 switch (tecla)
  1007.                 {
  1008.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  1009.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  1010.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  1011.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  1012.                 }
  1013.                 switch (m1[ry][rx])
  1014.                 {
  1015.                 case 2:
  1016.                     Console::BackgroundColor = ConsoleColor::Black;
  1017.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1018.                     Console::SetCursorPosition(rx, ry);
  1019.                     cout << (char)192 << (char)219 << (char)217;
  1020.                     Console::SetCursorPosition(rx, ry + 1);
  1021.                     cout << (char)218 << (char)223 << (char)191; break;
  1022.                 case 3:
  1023.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1024.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1025.                     Console::SetCursorPosition(rx, ry);
  1026.                     cout << (char)192 << (char)219 << (char)217;
  1027.                     Console::SetCursorPosition(rx, ry + 1);
  1028.                     cout << (char)218 << (char)223 << (char)191; break;
  1029.                 case 4:
  1030.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1031.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1032.                     Console::SetCursorPosition(rx, ry);
  1033.                     cout << (char)192 << (char)219 << (char)217;
  1034.                     Console::SetCursorPosition(rx, ry + 1);
  1035.                     cout << (char)218 << (char)223 << (char)191; break;
  1036.                 case 6:
  1037.                     Console::BackgroundColor = ConsoleColor::Black;
  1038.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1039.                     Console::SetCursorPosition(rx, ry);
  1040.                     cout << (char)192 << (char)219 << (char)217;
  1041.                     Console::SetCursorPosition(rx, ry + 1);
  1042.                     cout << (char)218 << (char)223 << (char)191; break;
  1043.                 }
  1044.             }
  1045.         }
  1046.         /*--------------------------------------------------*/
  1047.         _sleep(40);
  1048.  
  1049.         Timer(timersleep, 20, timer, vidas, rx, ry, 0);
  1050.         Console::BackgroundColor = ConsoleColor::Black;
  1051.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  1052.         Console::SetCursorPosition(txtx, txty);
  1053.         cout << "Vidas: ";
  1054.         Console::SetCursorPosition(txtx, txty + 1);
  1055.         cout << vidas[0];
  1056.         Console::SetCursorPosition(txtx, txty + 3);
  1057.         cout << "Time: ";
  1058.         Console::SetCursorPosition(txtx, txty + 4);
  1059.         cout << timer;
  1060.         Console::SetCursorPosition(txtx, txty + 6);
  1061.         cout << "Puntaje: ";
  1062.         Console::SetCursorPosition(txtx, txty + 7);
  1063.         cout << Puntaje;
  1064.         for (int i = 0; i < 10; i++)
  1065.         {
  1066.             Carritonegro(enemigo, i, rx, ry, vidas, 0);
  1067.         }
  1068.         for (int i = 10; i < 15; i++)
  1069.         {
  1070.             CarritoAmarillo(enemigo, i, rx, ry, vidas, 0);
  1071.         }
  1072.         /*--------------------------------------------------*/
  1073.         func_Cuevas(cueva, 0, exitmovement, rx, ry, SumaCueva);
  1074.  
  1075.         if (rx == bonus_x&&ry == bonus_y)
  1076.         {
  1077.             vidas[0]++;
  1078.             bonus_x = bonus_x - 9;
  1079.             Puntaje += 100;
  1080.         }
  1081.         if (vidas[0] == 0)
  1082.         {
  1083.             exitmovement[0] = 0;
  1084.         }
  1085.     }
  1086.     Console::BackgroundColor = ConsoleColor::Black;
  1087. }
  1088. void Movimiento2(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  1089. {
  1090.     posctt * tronco = new posctt[11];
  1091.     posctt * enemigo = new posctt[8];
  1092.     Random x;
  1093.     int txtx = 82, txty = 17;
  1094.     int timer = 180, timersleep = 0;
  1095.     int *cueva = new int[5];
  1096.     int bonus_x = 0, bonus_y = 23;
  1097.  
  1098.     int tecla;
  1099.     int rx = 42;
  1100.     int ry = 41;
  1101.     /*--------------------------------------------------*/
  1102.     tronco[0].x = x.Next(0, 70);
  1103.     tronco[0].y = 3;
  1104.     tronco[0].delx = 1;
  1105.  
  1106.     tronco[1].x = x.Next(0, 70);
  1107.     tronco[1].y = 7;
  1108.     tronco[1].delx = 1;
  1109.  
  1110.     tronco[2].x = x.Next(0, 70);
  1111.     tronco[2].y = 11;
  1112.     tronco[2].delx = 1;
  1113.  
  1114.     tronco[3].x = x.Next(0, 70);
  1115.     tronco[3].y = 15;
  1116.     tronco[3].delx = 1;
  1117.  
  1118.     tronco[4].x = x.Next(0, 70);
  1119.     tronco[4].y = 19;
  1120.     tronco[4].delx = 1;
  1121.     /*-------------------------*/
  1122.     tronco[5].x = x.Next(0, 70);
  1123.     tronco[5].y = 5;
  1124.     tronco[5].delx = -1;
  1125.  
  1126.     tronco[6].x = x.Next(0, 70);
  1127.     tronco[6].y = 9;
  1128.     tronco[6].delx = -1;
  1129.  
  1130.     tronco[7].x = x.Next(0, 70);
  1131.     tronco[7].y = 13;
  1132.     tronco[7].delx = -1;
  1133.  
  1134.     tronco[8].x = x.Next(0, 70);
  1135.     tronco[8].y = 17;
  1136.     tronco[8].delx = -1;
  1137.  
  1138.     tronco[9].x = x.Next(0, 70);
  1139.     tronco[9].y = 21;
  1140.     tronco[9].delx = -1;
  1141.     /*------------------------------*//*------------------------------*/
  1142.     enemigo[0].x = x.Next(0, 79);
  1143.     enemigo[0].y = 25;
  1144.     enemigo[0].delx = 3;
  1145.  
  1146.     enemigo[1].x = x.Next(0, 79);
  1147.     enemigo[1].y = 29;
  1148.     enemigo[1].delx = 2;
  1149.  
  1150.     enemigo[2].x = x.Next(0, 79);
  1151.     enemigo[2].y = 33;
  1152.     enemigo[2].delx = 2;
  1153.  
  1154.     enemigo[3].x = x.Next(0, 79);
  1155.     enemigo[3].y = 37;
  1156.     enemigo[3].delx = 3;
  1157.     /*------------------------------*/
  1158.     enemigo[4].x = x.Next(0, 79);
  1159.     enemigo[4].y = 27;
  1160.     enemigo[4].delx = -3;
  1161.  
  1162.     enemigo[5].x = x.Next(0, 79);
  1163.     enemigo[5].y = 31;
  1164.     enemigo[5].delx = -2;
  1165.  
  1166.     enemigo[6].x = x.Next(0, 79);
  1167.     enemigo[6].y = 35;
  1168.     enemigo[6].delx = -1;
  1169.  
  1170.     enemigo[7].x = x.Next(0, 79);
  1171.     enemigo[7].y = 39;
  1172.     enemigo[7].delx = -2;
  1173.     /*--------------------------------------------------*/
  1174.     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1175.     Console::ForegroundColor = ConsoleColor::Yellow;
  1176.     Console::SetCursorPosition(bonus_x, bonus_y);
  1177.     cout << char(201) << char(205) << char(187);
  1178.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  1179.     cout << char(200) << char(205) << char(188);
  1180.     while (exitmovement[1])
  1181.     {
  1182.         switch (m1[ry][rx])
  1183.         {
  1184.         case 3:
  1185.             Console::BackgroundColor = ConsoleColor::DarkGray;
  1186.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1187.             Console::SetCursorPosition(rx, ry);
  1188.             cout << (char)192 << (char)219 << (char)217;
  1189.             Console::SetCursorPosition(rx, ry + 1);
  1190.             cout << (char)218 << (char)223 << (char)191; break;
  1191.         }
  1192.         if (kbhit())
  1193.         {
  1194.             tecla = _getch();
  1195.             if (tecla == 224)
  1196.             {
  1197.                 switch (m1[ry][rx])
  1198.                 {
  1199.                 case 3:
  1200.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1201.                     Console::ForegroundColor = ConsoleColor::Gray;
  1202.                     Console::SetCursorPosition(rx, ry);
  1203.                     cout << char(177) << char(177) << char(177);
  1204.                     Console::SetCursorPosition(rx, ry + 1);
  1205.                     cout << char(177) << char(177) << char(177); break;
  1206.                 case 4:
  1207.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1208.                     Console::SetCursorPosition(rx, ry);
  1209.                     cout << "   ";
  1210.                     Console::SetCursorPosition(rx, ry + 1);
  1211.                     cout << "   ";  break;
  1212.                 case 5:
  1213.                     Console::BackgroundColor = ConsoleColor::Blue;
  1214.                     Console::ForegroundColor = ConsoleColor::Cyan;
  1215.                     Console::SetCursorPosition(rx, ry);
  1216.                     cout << char(177) << char(177) << char(177);
  1217.                     Console::SetCursorPosition(rx, ry + 1);
  1218.                     cout << char(177) << char(177) << char(177); break;
  1219.                 case 10:
  1220.                     Console::SetCursorPosition(rx, ry);
  1221.                     Console::BackgroundColor = ConsoleColor::Black;
  1222.                     cout << "   ";
  1223.                     Console::SetCursorPosition(rx, ry + 1);
  1224.                     cout << "   ";
  1225.                     if (ry == 31)
  1226.                     {
  1227.                         Console::ForegroundColor = ConsoleColor::White;
  1228.                         Console::SetCursorPosition(rx, ry);
  1229.                         cout << "   ";
  1230.                         Console::SetCursorPosition(rx, ry + 1);
  1231.                         cout << "===";
  1232.                     } break;
  1233.                 }
  1234.                 tecla = _getch();
  1235.                 switch (tecla)
  1236.                 {
  1237.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  1238.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  1239.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  1240.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  1241.                 }
  1242.                 switch (m1[ry][rx])
  1243.                 {
  1244.                 case 3:
  1245.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1246.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1247.                     Console::SetCursorPosition(rx, ry);
  1248.                     cout << (char)192 << (char)219 << (char)217;
  1249.                     Console::SetCursorPosition(rx, ry + 1);
  1250.                     cout << (char)218 << (char)223 << (char)191; break;
  1251.                 case 4:
  1252.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1253.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1254.                     Console::SetCursorPosition(rx, ry);
  1255.                     cout << (char)192 << (char)219 << (char)217;
  1256.                     Console::SetCursorPosition(rx, ry + 1);
  1257.                     cout << (char)218 << (char)223 << (char)191; break;
  1258.                 case 5:
  1259.                     Console::BackgroundColor = ConsoleColor::Blue;
  1260.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1261.                     Console::SetCursorPosition(rx, ry);
  1262.                     cout << (char)192 << (char)219 << (char)217;
  1263.                     Console::SetCursorPosition(rx, ry + 1);
  1264.                     cout << (char)218 << (char)223 << (char)191; break;
  1265.                 case 10:
  1266.                     Console::SetCursorPosition(rx, ry);
  1267.                     Console::BackgroundColor = ConsoleColor::Black;
  1268.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1269.                     cout << (char)192 << (char)219 << (char)217;
  1270.                     Console::SetCursorPosition(rx, ry + 1);
  1271.                     cout << (char)218 << (char)223 << (char)191; break;
  1272.                 case 8:
  1273.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1274.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1275.                     Console::SetCursorPosition(rx, ry);
  1276.                     cout << (char)192 << (char)219 << (char)217;
  1277.                     Console::SetCursorPosition(rx, ry + 1);
  1278.                     cout << (char)218 << (char)223 << (char)191; break;
  1279.                 }
  1280.             }
  1281.         }
  1282.         /*--------------------------------------------------*/
  1283.         _sleep(20);
  1284.         Timer(timersleep, 20, timer, vidas, rx, ry, 1);
  1285.         Console::BackgroundColor = ConsoleColor::Black;
  1286.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  1287.         Console::SetCursorPosition(txtx, txty);
  1288.         cout << "Vidas: ";
  1289.         Console::SetCursorPosition(txtx, txty + 1);
  1290.         cout << vidas[1];
  1291.         Console::SetCursorPosition(txtx, txty + 3);
  1292.         cout << "Time: ";
  1293.         Console::SetCursorPosition(txtx, txty + 4);
  1294.         cout << timer;
  1295.         Console::SetCursorPosition(txtx, txty + 6);
  1296.         cout << "Puntaje: ";
  1297.         Console::SetCursorPosition(txtx, txty + 7);
  1298.         cout << Puntaje;
  1299.         Troncozd(tronco, 1, rx, ry, m1, vidas, 1);
  1300.         Troncozd(tronco, 2, rx, ry, m1, vidas, 1);
  1301.         Troncozd(tronco, 3, rx, ry, m1, vidas, 1);
  1302.         Troncozd(tronco, 4, rx, ry, m1, vidas, 1);
  1303.         /*----------*/
  1304.         Troncodz(tronco, 5, rx, ry, m1, vidas, 1);
  1305.         Troncodz(tronco, 6, rx, ry, m1, vidas, 1);
  1306.         Troncodz(tronco, 7, rx, ry, m1, vidas, 1);
  1307.         Troncodz(tronco, 8, rx, ry, m1, vidas, 1);
  1308.         Troncodz(tronco, 9, rx, ry, m1, vidas, 1);
  1309.         /*----------*//*----------*/
  1310.         Carritonegro(enemigo, 0, rx, ry, vidas, 1);
  1311.         Carritonegro(enemigo, 1, rx, ry, vidas, 1);
  1312.         Carritonegro(enemigo, 2, rx, ry, vidas, 1);
  1313.         Carritonegro(enemigo, 3, rx, ry, vidas, 1);
  1314.         /*----------*/
  1315.         CarritoAmarillo2(enemigo, 4, rx, ry, vidas, 1);
  1316.         CarritoAmarillo2exception(enemigo, 5, rx, ry, vidas, 1);
  1317.         CarritoAmarillo2(enemigo, 6, rx, ry, vidas, 1);
  1318.         CarritoAmarillo2(enemigo, 7, rx, ry, vidas, 1);
  1319.         /*--------------------------------------------------*/
  1320.         func_Cuevas(cueva, 1, exitmovement, rx, ry, SumaCueva);
  1321.  
  1322.         if (rx == bonus_x&&ry == bonus_y)
  1323.         {
  1324.             vidas[1]++;
  1325.             bonus_x = bonus_x - 9;
  1326.             Puntaje += 100;
  1327.         }
  1328.         if (vidas[1] == 0)
  1329.         {
  1330.             exitmovement[1] = 0;
  1331.         }
  1332.     }
  1333.     Console::BackgroundColor = ConsoleColor::Black;
  1334. }
  1335. void Movimiento3(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  1336. {
  1337.     posctt * tronco = new posctt[16];
  1338.     Random x;
  1339.  
  1340.     int txtx = 82, txty = 17;
  1341.     int timer = 180, timersleep = 0;
  1342.     int *cueva = new int[5];
  1343.     int bonus_x = 6, bonus_y = 13;
  1344.  
  1345.     int tecla;
  1346.     int rx = 42;
  1347.     int ry = 41;
  1348.     /*--------------------------------------------------*/
  1349.     tronco[1].x = x.Next(0, 70);
  1350.     tronco[1].y = 7;
  1351.     tronco[1].delx = 1;
  1352.  
  1353.     tronco[2].x = x.Next(0, 70);
  1354.     tronco[2].y = 11;
  1355.     tronco[2].delx = 1;
  1356.  
  1357.     tronco[3].x = x.Next(0, 32);
  1358.     tronco[3].y = 17;
  1359.     tronco[3].delx = 1;
  1360.  
  1361.     tronco[4].x = x.Next(0, 32);
  1362.     tronco[4].y = 21;
  1363.     tronco[4].delx = 1;
  1364.  
  1365.     tronco[5].x = x.Next(0, 70);
  1366.     tronco[5].y = 27;
  1367.     tronco[5].delx = 1;
  1368.  
  1369.     tronco[6].x = x.Next(0, 70);
  1370.     tronco[6].y = 33;
  1371.     tronco[6].delx = 1;
  1372.  
  1373.     tronco[7].x = x.Next(0, 70);
  1374.     tronco[7].y = 37;
  1375.     tronco[7].delx = 1;
  1376.     /*-------------------------*/
  1377.     tronco[8].x = x.Next(0, 32);
  1378.     tronco[8].y = 5;
  1379.     tronco[8].delx = -1;
  1380.  
  1381.     tronco[9].x = x.Next(0, 32);
  1382.     tronco[9].y = 9;
  1383.     tronco[9].delx = -1;
  1384.  
  1385.     tronco[10].x = x.Next(0, 70);
  1386.     tronco[10].y = 15;
  1387.     tronco[10].delx = -1;
  1388.  
  1389.     tronco[11].x = x.Next(0, 70);
  1390.     tronco[11].y = 19;
  1391.     tronco[11].delx = -1;
  1392.  
  1393.     tronco[12].x = x.Next(0, 70);
  1394.     tronco[12].y = 25;
  1395.     tronco[12].delx = -1;
  1396.  
  1397.     tronco[13].x = x.Next(0, 70);
  1398.     tronco[13].y = 29;
  1399.     tronco[13].delx = -1;
  1400.  
  1401.     tronco[14].x = x.Next(0, 70);
  1402.     tronco[14].y = 35;
  1403.     tronco[14].delx = -1;
  1404.  
  1405.     tronco[15].x = x.Next(0, 70);
  1406.     tronco[15].y = 39;
  1407.     tronco[15].delx = -1;
  1408.     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1409.     Console::ForegroundColor = ConsoleColor::White;
  1410.     Console::SetCursorPosition(bonus_x, bonus_y);
  1411.     cout << char(201) << char(205) << char(187);
  1412.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  1413.     cout << char(200) << char(205) << char(188);
  1414.     /*--------------------------------------------------*/
  1415.     while (exitmovement[2])
  1416.     {
  1417.         switch (m1[ry][rx])
  1418.         {
  1419.         case 3:
  1420.             Console::BackgroundColor = ConsoleColor::DarkGray;
  1421.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1422.             Console::SetCursorPosition(rx, ry);
  1423.             cout << (char)192 << (char)219 << (char)217;
  1424.             Console::SetCursorPosition(rx, ry + 1);
  1425.             cout << (char)218 << (char)223 << (char)191; break;
  1426.         }
  1427.         if (kbhit())
  1428.         {
  1429.             tecla = _getch();
  1430.             if (tecla == 224)
  1431.             {
  1432.                 switch (m1[ry][rx])
  1433.                 {
  1434.                 case 3:
  1435.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1436.                     Console::ForegroundColor = ConsoleColor::Gray;
  1437.                     Console::SetCursorPosition(rx, ry);
  1438.                     cout << char(177) << char(177) << char(177);
  1439.                     Console::SetCursorPosition(rx, ry + 1);
  1440.                     cout << char(177) << char(177) << char(177); break;
  1441.                 case 4:
  1442.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1443.                     Console::SetCursorPosition(rx, ry);
  1444.                     cout << "   ";
  1445.                     Console::SetCursorPosition(rx, ry + 1);
  1446.                     cout << "   ";  break;
  1447.                 case 5:
  1448.                     Console::BackgroundColor = ConsoleColor::Blue;
  1449.                     Console::ForegroundColor = ConsoleColor::Cyan;
  1450.                     Console::SetCursorPosition(rx, ry);
  1451.                     cout << char(177) << char(177) << char(177);
  1452.                     Console::SetCursorPosition(rx, ry + 1);
  1453.                     cout << char(177) << char(177) << char(177); break;
  1454.                 }
  1455.                 tecla = _getch();
  1456.                 switch (tecla)
  1457.                 {
  1458.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  1459.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  1460.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  1461.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  1462.                 }
  1463.                 switch (m1[ry][rx])
  1464.                 {
  1465.                 case 3:
  1466.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1467.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1468.                     Console::SetCursorPosition(rx, ry);
  1469.                     cout << (char)192 << (char)219 << (char)217;
  1470.                     Console::SetCursorPosition(rx, ry + 1);
  1471.                     cout << (char)218 << (char)223 << (char)191; break;
  1472.                 case 4:
  1473.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1474.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1475.                     Console::SetCursorPosition(rx, ry);
  1476.                     cout << (char)192 << (char)219 << (char)217;
  1477.                     Console::SetCursorPosition(rx, ry + 1);
  1478.                     cout << (char)218 << (char)223 << (char)191; break;
  1479.                 case 5:
  1480.                     Console::BackgroundColor = ConsoleColor::Blue;
  1481.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1482.                     Console::SetCursorPosition(rx, ry);
  1483.                     cout << (char)192 << (char)219 << (char)217;
  1484.                     Console::SetCursorPosition(rx, ry + 1);
  1485.                     cout << (char)218 << (char)223 << (char)191; break;
  1486.                 case 8:
  1487.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1488.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1489.                     Console::SetCursorPosition(rx, ry);
  1490.                     cout << (char)192 << (char)219 << (char)217;
  1491.                     Console::SetCursorPosition(rx, ry + 1);
  1492.                     cout << (char)218 << (char)223 << (char)191; break;
  1493.                 }
  1494.             }
  1495.         }
  1496.         /*--------------------------------------------------*/
  1497.         _sleep(50);
  1498.         Timer(timersleep, 50, timer, vidas, rx, ry, 2);
  1499.         Console::BackgroundColor = ConsoleColor::Black;
  1500.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  1501.         Console::SetCursorPosition(txtx, txty);
  1502.         cout << "Vidas: ";
  1503.         Console::SetCursorPosition(txtx, txty + 1);
  1504.         cout << vidas[2];
  1505.         Console::SetCursorPosition(txtx, txty + 3);
  1506.         cout << "Time: ";
  1507.         Console::SetCursorPosition(txtx, txty + 4);
  1508.         cout << timer;
  1509.         Console::SetCursorPosition(txtx, txty + 6);
  1510.         cout << "Puntaje: ";
  1511.         Console::SetCursorPosition(txtx, txty + 7);
  1512.         cout << Puntaje;
  1513.         for (int i = 1; i < 8; i++)
  1514.         {
  1515.             Troncozd(tronco, i, rx, ry, m1, vidas, 2);
  1516.         }
  1517.         for (int i = 8; i < 16; i++)
  1518.         {
  1519.             Troncodz(tronco, i, rx, ry, m1, vidas, 2);
  1520.         }
  1521.         /*--------------------------------------------------*/
  1522.         func_Cuevas(cueva, 2, exitmovement, rx, ry, SumaCueva);
  1523.  
  1524.         if (rx == bonus_x&&ry == bonus_y)
  1525.         {
  1526.             vidas[2]++;
  1527.             bonus_x = bonus_x - 9;
  1528.             Puntaje += 100;
  1529.         }
  1530.         if (vidas[2] == 0)
  1531.         {
  1532.             exitmovement[2] = 0;
  1533.         }
  1534.     }
  1535.     Console::BackgroundColor = ConsoleColor::Black;
  1536. }
  1537. void Movimiento4(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  1538. {
  1539.     posctt * tronco = new posctt[14];
  1540.     Random x;
  1541.  
  1542.     int *cueva = new int[5];
  1543.     int txtx = 82, txty = 17;
  1544.     int timer = 180, timersleep = 0;
  1545.  
  1546.     int bonus_x = 78, bonus_y = 13;
  1547.  
  1548.     int tecla;
  1549.     int rx = 42;
  1550.     int ry = 41;
  1551.     /*--------------------------------------------------*/
  1552.     tronco[0].x = x.Next(0, 32);
  1553.     tronco[0].y = 7;
  1554.     tronco[0].delx = 1;
  1555.  
  1556.     tronco[1].x = x.Next(0, 32);
  1557.     tronco[1].y = 11;
  1558.     tronco[1].delx = 1;
  1559.  
  1560.     tronco[2].x = x.Next(0, 70);
  1561.     tronco[2].y = 15;
  1562.     tronco[2].delx = 1;
  1563.  
  1564.     tronco[3].x = x.Next(0, 70);
  1565.     tronco[3].y = 23;
  1566.     tronco[3].delx = 1;
  1567.  
  1568.     tronco[4].x = x.Next(0, 70);
  1569.     tronco[4].y = 27;
  1570.     tronco[4].delx = 1;
  1571.  
  1572.     tronco[5].x = x.Next(0, 70);
  1573.     tronco[5].y = 35;
  1574.     tronco[5].delx = 1;
  1575.  
  1576.     tronco[6].x = x.Next(0, 70);
  1577.     tronco[6].y = 39;
  1578.     tronco[6].delx = 1;
  1579.     /*-------------------------*/
  1580.     tronco[7].x = x.Next(0, 32);
  1581.     tronco[7].y = 5;
  1582.     tronco[7].delx = -1;
  1583.  
  1584.     tronco[8].x = x.Next(0, 70);
  1585.     tronco[8].y = 9;
  1586.     tronco[8].delx = -1;
  1587.  
  1588.     tronco[9].x = x.Next(0, 70);
  1589.     tronco[9].y = 17;
  1590.     tronco[9].delx = -1;
  1591.  
  1592.     tronco[10].x = x.Next(0, 70);
  1593.     tronco[10].y = 21;
  1594.     tronco[10].delx = -1;
  1595.  
  1596.     tronco[11].x = x.Next(0, 70);
  1597.     tronco[11].y = 29;
  1598.     tronco[11].delx = -1;
  1599.  
  1600.     tronco[12].x = x.Next(0, 70);
  1601.     tronco[12].y = 33;
  1602.     tronco[12].delx = -1;
  1603.  
  1604.     tronco[13].x = x.Next(0, 32);
  1605.     tronco[13].y = 37;
  1606.     tronco[13].delx = -1;
  1607.     /*--------------------------------------------------*/
  1608.     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1609.     Console::ForegroundColor = ConsoleColor::Yellow;
  1610.     Console::SetCursorPosition(bonus_x, bonus_y);
  1611.     cout << char(201) << char(205) << char(187);
  1612.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  1613.     cout << char(200) << char(205) << char(188);
  1614.     while (exitmovement[3])
  1615.     {
  1616.         switch (m1[ry][rx])
  1617.         {
  1618.         case 3:
  1619.             Console::SetCursorPosition(rx, ry);
  1620.             Console::BackgroundColor = ConsoleColor::DarkGray;
  1621.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1622.             cout << (char)192 << (char)219 << (char)217;
  1623.             Console::SetCursorPosition(rx, ry + 1);
  1624.             cout << (char)218 << (char)223 << (char)191; break;
  1625.  
  1626.         }
  1627.         if (kbhit())
  1628.         {
  1629.             tecla = _getch();
  1630.             if (tecla == 224)
  1631.             {
  1632.                 switch (m1[ry][rx])
  1633.                 {
  1634.                 case 3:
  1635.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1636.                     Console::ForegroundColor = ConsoleColor::Gray;
  1637.                     Console::SetCursorPosition(rx, ry);
  1638.                     cout << char(177) << char(177) << char(177);
  1639.                     Console::SetCursorPosition(rx, ry + 1);
  1640.                     cout << char(177) << char(177) << char(177); break;
  1641.                 case 4:
  1642.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1643.                     Console::ForegroundColor = ConsoleColor::DarkGreen;
  1644.                     Console::SetCursorPosition(rx, ry);
  1645.                     cout << char(177) << char(177) << char(177);
  1646.                     Console::SetCursorPosition(rx, ry + 1);
  1647.                     cout << char(177) << char(177) << char(177); break;
  1648.                 case 5:
  1649.                     Console::BackgroundColor = ConsoleColor::Blue;
  1650.                     Console::ForegroundColor = ConsoleColor::Cyan;
  1651.                     Console::SetCursorPosition(rx, ry);
  1652.                     cout << char(177) << char(177) << char(177);
  1653.                     Console::SetCursorPosition(rx, ry + 1);
  1654.                     cout << char(177) << char(177) << char(177); break;
  1655.                 }
  1656.                 tecla = _getch();
  1657.                 switch (tecla)
  1658.                 {
  1659.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  1660.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  1661.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  1662.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  1663.                 }
  1664.                 switch (m1[ry][rx])
  1665.                 {
  1666.                 case 3:
  1667.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1668.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1669.                     Console::SetCursorPosition(rx, ry);
  1670.                     cout << (char)192 << (char)219 << (char)217;
  1671.                     Console::SetCursorPosition(rx, ry + 1);
  1672.                     cout << (char)218 << (char)223 << (char)191; break;
  1673.                 case 5:
  1674.                     Console::BackgroundColor = ConsoleColor::Blue;
  1675.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1676.                     Console::SetCursorPosition(rx, ry);
  1677.                     cout << (char)192 << (char)219 << (char)217;
  1678.                     Console::SetCursorPosition(rx, ry + 1);
  1679.                     cout << (char)218 << (char)223 << (char)191; break;
  1680.                 case 8:
  1681.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1682.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;  
  1683.                     Console::SetCursorPosition(rx, ry);
  1684.                     cout << (char)192 << (char)219 << (char)217;
  1685.                     Console::SetCursorPosition(rx, ry + 1);
  1686.                     cout << (char)218 << (char)223 << (char)191; break;
  1687.                 case 4:
  1688.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1689.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1690.                     Console::SetCursorPosition(rx, ry);
  1691.                     cout << (char)192 << (char)219 << (char)217;
  1692.                     Console::SetCursorPosition(rx, ry + 1);
  1693.                     cout << (char)218 << (char)223 << (char)191; break;
  1694.                 }
  1695.             }
  1696.         }
  1697.         _sleep(50);
  1698.         Timer(timersleep, 50, timer, vidas, rx, ry, 3);
  1699.  
  1700.         Console::BackgroundColor = ConsoleColor::Black;
  1701.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  1702.         Console::SetCursorPosition(txtx, txty);
  1703.         cout << "Vidas: ";
  1704.         Console::SetCursorPosition(txtx, txty + 1);
  1705.         cout << vidas[3];
  1706.         Console::SetCursorPosition(txtx, txty + 3);
  1707.         cout << "Time: ";
  1708.         Console::SetCursorPosition(txtx, txty + 4);
  1709.         cout << timer;
  1710.         Console::SetCursorPosition(txtx, txty + 6);
  1711.         cout << "Puntaje: ";
  1712.         Console::SetCursorPosition(txtx, txty + 7);
  1713.         cout << Puntaje;
  1714.         for (int i = 0; i < 7; i++)
  1715.         {
  1716.             Troncozd(tronco, i, rx, ry, m1, vidas, 3);
  1717.         }
  1718.         for (int i = 07; i < 14; i++)
  1719.         {
  1720.             Troncodz(tronco, i, rx, ry, m1, vidas, 3);
  1721.         }
  1722.         /*--------------------------------------------------*/
  1723.         func_Cuevas(cueva, 3, exitmovement, rx, ry, SumaCueva);
  1724.  
  1725.         if (rx == bonus_x&&ry == bonus_y)
  1726.         {
  1727.             vidas[3]++;
  1728.             bonus_x = bonus_x - 20;
  1729.             Puntaje += 100;
  1730.         }
  1731.         if (vidas[3] == 0)
  1732.         {
  1733.             exitmovement[3] = 0;
  1734.         }
  1735.     }
  1736.     Console::BackgroundColor = ConsoleColor::Black;
  1737. }
  1738. void Movimiento5(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  1739. {
  1740.     posctt * tronco = new posctt[16];
  1741.     Random x;
  1742.  
  1743.     int *cueva = new int[5];
  1744.     int txtx = 82, txty = 17;
  1745.     int timer = 180, timersleep = 0;
  1746.  
  1747.     int bonus_x = 78, bonus_y = 19;
  1748.  
  1749.     int tecla;
  1750.     int rx = 42;
  1751.     int ry = 41;
  1752.     /*--------------------------------------------------*/
  1753.  
  1754.     tronco[1].x = x.Next(0, 70);
  1755.     tronco[1].y = 7;
  1756.     tronco[1].delx = 1;
  1757.  
  1758.     tronco[2].x = x.Next(0, 70);
  1759.     tronco[2].y = 13;
  1760.     tronco[2].delx = 1;
  1761.  
  1762.     tronco[3].x = x.Next(0, 32);
  1763.     tronco[3].y = 17;
  1764.     tronco[3].delx = 1;
  1765.  
  1766.     tronco[4].x = x.Next(0, 70);
  1767.     tronco[4].y = 23;
  1768.     tronco[4].delx = 1;
  1769.  
  1770.     tronco[5].x = x.Next(0, 32);
  1771.     tronco[5].y = 27;
  1772.     tronco[5].delx = 1;
  1773.  
  1774.     tronco[6].x = x.Next(0, 70);
  1775.     tronco[6].y = 33;
  1776.     tronco[6].delx = 1;
  1777.  
  1778.     tronco[7].x = x.Next(0, 70);
  1779.     tronco[7].y = 37;
  1780.     tronco[7].delx = 1;
  1781.     /*-------------------------*/
  1782.     tronco[8].x = x.Next(0, 70);
  1783.     tronco[8].y = 5;
  1784.     tronco[8].delx = -1;
  1785.  
  1786.     tronco[9].x = x.Next(0, 32);
  1787.     tronco[9].y = 9;
  1788.     tronco[9].delx = -1;
  1789.  
  1790.     tronco[10].x = x.Next(0, 70);
  1791.     tronco[10].y = 15;
  1792.     tronco[10].delx = -1;
  1793.  
  1794.     tronco[11].x = x.Next(0, 32);
  1795.     tronco[11].y = 21;
  1796.     tronco[11].delx = -1;
  1797.  
  1798.     tronco[12].x = x.Next(0, 70);
  1799.     tronco[12].y = 25;
  1800.     tronco[12].delx = -1;
  1801.  
  1802.     tronco[13].x = x.Next(0, 70);
  1803.     tronco[13].y = 29;
  1804.     tronco[13].delx = -1;
  1805.  
  1806.     tronco[14].x = x.Next(0, 70);
  1807.     tronco[14].y = 35;
  1808.     tronco[14].delx = -1;
  1809.  
  1810.     tronco[15].x = x.Next(0, 70);
  1811.     tronco[15].y = 39;
  1812.     tronco[15].delx = -1;
  1813.     /*--------------------------------------------------*/
  1814.     Console::BackgroundColor = ConsoleColor::DarkGray;
  1815.     Console::ForegroundColor = ConsoleColor::Red;
  1816.     Console::SetCursorPosition(bonus_x, bonus_y);
  1817.     cout << char(201) << char(205) << char(187);
  1818.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  1819.     cout << char(200) << char(205) << char(188);
  1820.     while (exitmovement[4])
  1821.     {
  1822.         switch (m1[ry][rx])
  1823.         {
  1824.         case 3:
  1825.             Console::SetCursorPosition(rx, ry);
  1826.             Console::BackgroundColor = ConsoleColor::DarkGray;
  1827.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1828.             cout << (char)192 << (char)219 << (char)217;
  1829.             Console::SetCursorPosition(rx, ry + 1);
  1830.             cout << (char)218 << (char)223 << (char)191; break;
  1831.         case 4:
  1832.             Console::BackgroundColor = ConsoleColor::DarkGreen;
  1833.             Console::ForegroundColor = ConsoleColor::DarkGreen;
  1834.             Console::SetCursorPosition(rx, ry);
  1835.             cout << char(177) << char(177) << char(177);
  1836.             Console::SetCursorPosition(rx, ry + 1);
  1837.             cout << char(177) << char(177) << char(177); break;
  1838.         }
  1839.         if (kbhit())
  1840.         {
  1841.             tecla = _getch();
  1842.             if (tecla == 224)
  1843.             {
  1844.                 switch (m1[ry][rx])
  1845.                 {
  1846.                 case 13:
  1847.                     Console::BackgroundColor = ConsoleColor::Red;
  1848.                     if ((ry == 14 || ry == 16 || ry == 18) && (rx == 10 || rx == 39 || rx == 66))
  1849.                     {
  1850.                         Console::ForegroundColor = ConsoleColor::Black;
  1851.                         cout << char(186);
  1852.                     }
  1853.                     else
  1854.                     {
  1855.                         Console::ForegroundColor = ConsoleColor::Yellow;
  1856.                         cout << char(176);
  1857.                     }
  1858.                     ; break;
  1859.                 case 9:
  1860.                     Console::BackgroundColor = ConsoleColor::Red;
  1861.                     Console::ForegroundColor = ConsoleColor::Yellow;
  1862.                     Console::SetCursorPosition(rx, ry);
  1863.                     cout << (char)176 << (char)176 << (char)176;
  1864.                     Console::SetCursorPosition(rx, ry + 1);
  1865.                     cout << (char)176 << (char)176 << (char)176; break;
  1866.                 case 4:
  1867.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  1868.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1869.                     Console::SetCursorPosition(rx, ry);
  1870.                     cout << (char)192 << (char)219 << (char)217;
  1871.                     Console::SetCursorPosition(rx, ry + 1);
  1872.                     cout << (char)218 << (char)223 << (char)191; break;
  1873.                 case 3:
  1874.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1875.                     Console::ForegroundColor = ConsoleColor::Gray;
  1876.                     Console::SetCursorPosition(rx, ry);
  1877.                     cout << char(177) << char(177) << char(177);
  1878.                     Console::SetCursorPosition(rx, ry + 1);
  1879.                     cout << char(177) << char(177) << char(177); break;
  1880.  
  1881.                 }
  1882.                 tecla = _getch();
  1883.                 switch (tecla)
  1884.                 {
  1885.                 case 72:if ((m1[ry - 2][rx] != 1) && (m1[ry - 2][rx] != 13) && ry > 0)ry -= 2; break;
  1886.                 case 75:if ((m1[ry][rx - 3] != 1) && (m1[ry][rx - 3] != 13) && rx > 0)rx -= 3; break;
  1887.                 case 77:if ((m1[ry][rx + 3] != 1) && (m1[ry][rx + 3] != 13) && rx < 78)rx += 3; break;
  1888.                 case 80:if ((m1[ry + 2][rx] != 1) && (m1[ry + 2][rx] != 13) && ry < 41)ry += 2; break;
  1889.                 }
  1890.                 switch (m1[ry][rx])
  1891.                 {
  1892.                 case 13:
  1893.                     Console::BackgroundColor = ConsoleColor::Red;
  1894.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1895.                     Console::SetCursorPosition(rx, ry);
  1896.                     cout << (char)192 << (char)219 << (char)217;
  1897.                     Console::SetCursorPosition(rx, ry + 1);
  1898.                     cout << (char)218 << (char)223 << (char)191;
  1899.                     if ((ry == 13 || ry == 15 || ry == 17) && (rx == 12 || rx == 39 || rx == 66))
  1900.                     {
  1901.                         Console::BackgroundColor = ConsoleColor::Red;
  1902.                         Console::ForegroundColor = ConsoleColor::Yellow;
  1903.                         Console::SetCursorPosition(rx, ry);
  1904.                         cout << char(176);
  1905.                         Console::ForegroundColor = ConsoleColor::Black;
  1906.                         Console::SetCursorPosition(rx + 1, ry);
  1907.                         cout << char(186);
  1908.                         Console::ForegroundColor = ConsoleColor::Yellow;
  1909.                         Console::SetCursorPosition(rx + 2, ry);
  1910.                         cout << char(176);
  1911.  
  1912.                         Console::SetCursorPosition(rx, ry + 1);
  1913.                         cout << char(176);
  1914.                         Console::ForegroundColor = ConsoleColor::Black;
  1915.                         Console::SetCursorPosition(rx + 1, ry + 1);
  1916.                         cout << char(186);
  1917.                         Console::ForegroundColor = ConsoleColor::Yellow;
  1918.                         Console::SetCursorPosition(rx + 2, ry + 1);
  1919.                         cout << char(176);
  1920.                     } break;
  1921.                 case 9:
  1922.                     Console::BackgroundColor = ConsoleColor::Red;
  1923.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1924.                     Console::SetCursorPosition(rx, ry);
  1925.                     cout << (char)192 << (char)219 << (char)217;
  1926.                     Console::SetCursorPosition(rx, ry + 1);
  1927.                     cout << (char)218 << (char)223 << (char)191; break;
  1928.                 case 3:
  1929.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1930.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1931.                     Console::SetCursorPosition(rx, ry);
  1932.                     cout << (char)192 << (char)219 << (char)217;
  1933.                     Console::SetCursorPosition(rx, ry + 1);
  1934.                     cout << (char)218 << (char)223 << (char)191; break;
  1935.                 case 7:
  1936.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  1937.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  1938.                     Console::SetCursorPosition(rx, ry);
  1939.                     cout << (char)192 << (char)219 << (char)217;
  1940.                     Console::SetCursorPosition(rx, ry + 1);
  1941.                     cout << (char)218 << (char)223 << (char)191; break;
  1942.                 }
  1943.             }
  1944.         }
  1945.         /*--------------------------------------------------*/
  1946.         _sleep(50);
  1947.         Timer(timersleep, 50, timer, vidas, rx, ry, 4);
  1948.         Console::BackgroundColor = ConsoleColor::Black;
  1949.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  1950.         Console::SetCursorPosition(txtx, txty);
  1951.         cout << "Vidas: ";
  1952.         Console::SetCursorPosition(txtx, txty + 1);
  1953.         cout << vidas[4];
  1954.         Console::SetCursorPosition(txtx, txty + 3);
  1955.         cout << "Time: ";
  1956.         Console::SetCursorPosition(txtx, txty + 4);
  1957.         cout << timer;
  1958.         Console::SetCursorPosition(txtx, txty + 6);
  1959.         cout << "Puntaje: ";
  1960.         Console::SetCursorPosition(txtx, txty + 7);
  1961.         cout << Puntaje;
  1962.         for (int i = 1; i < 8; i++)
  1963.         {
  1964.             Troncolavazd(tronco, i, rx, ry, m1, vidas, 4);
  1965.         }
  1966.         for (int i = 8; i < 16; i++)
  1967.         {
  1968.             Troncolavadz(tronco, i, rx, ry, m1, vidas, 4);
  1969.         }
  1970.         /*--------------------------------------------------*/
  1971.         func_Cuevas(cueva, 4, exitmovement, rx, ry, SumaCueva);
  1972.         ;
  1973.         if (rx == bonus_x&&ry == bonus_y)
  1974.         {
  1975.             vidas[4]++;
  1976.             bonus_x = bonus_x - 9;
  1977.             Puntaje += 100;
  1978.         }
  1979.         if (vidas[4] == 0)
  1980.         {
  1981.             exitmovement[4] = 0;
  1982.         }
  1983.     }
  1984.     Console::BackgroundColor = ConsoleColor::Black;
  1985. }
  1986. void Movimiento6(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  1987. {
  1988.  
  1989.     posctt * tronco = new posctt[6];
  1990.     posctt * rebo_obs = new posctt[20];
  1991.     Random x;
  1992.  
  1993.     int *cueva = new int[5];
  1994.     int txtx = 82, txty = 17;
  1995.     int timer = 180, timersleep = 0;
  1996.  
  1997.     int bonus_x = 78, bonus_y = 11;
  1998.  
  1999.     int tecla;
  2000.     int rx = 0;
  2001.     int ry = 41;
  2002.     /*--------------------------------------------------*/
  2003.     rebo_obs[0].x = 18;
  2004.     rebo_obs[0].y = x.Next(13, 19);
  2005.     rebo_obs[0].minry = 13;
  2006.     rebo_obs[0].maxry = 19;
  2007.     rebo_obs[0].dely = 1;
  2008.  
  2009.     rebo_obs[1].x = 30;
  2010.     rebo_obs[1].y = x.Next(13, 19);
  2011.     rebo_obs[1].minry = 13;
  2012.     rebo_obs[1].maxry = 19;
  2013.     rebo_obs[1].dely = 1;
  2014.  
  2015.     rebo_obs[2].x = 42;
  2016.     rebo_obs[2].y = x.Next(13, 19);
  2017.     rebo_obs[2].minry = 13;
  2018.     rebo_obs[2].maxry = 19;
  2019.     rebo_obs[2].dely = 1;
  2020.  
  2021.     rebo_obs[3].x = 54;
  2022.     rebo_obs[3].y = x.Next(13, 19);
  2023.     rebo_obs[3].minry = 13;
  2024.     rebo_obs[3].maxry = 19;
  2025.     rebo_obs[3].dely = 1;
  2026.     /*-------------------------*/
  2027.     rebo_obs[4].x = 24;
  2028.     rebo_obs[4].y = x.Next(23, 29);
  2029.     rebo_obs[4].minry = 23;
  2030.     rebo_obs[4].maxry = 29;
  2031.     rebo_obs[4].dely = 1;
  2032.  
  2033.     rebo_obs[5].x = 36;
  2034.     rebo_obs[5].y = x.Next(23, 29);
  2035.     rebo_obs[5].minry = 23;
  2036.     rebo_obs[5].maxry = 29;
  2037.     rebo_obs[5].dely = 1;
  2038.  
  2039.     rebo_obs[6].x = 48;
  2040.     rebo_obs[6].y = x.Next(23, 29);
  2041.     rebo_obs[6].minry = 23;
  2042.     rebo_obs[6].maxry = 29;
  2043.     rebo_obs[6].dely = 1;
  2044.  
  2045.     rebo_obs[7].x = 60;
  2046.     rebo_obs[7].y = x.Next(23, 29);
  2047.     rebo_obs[7].minry = 23;
  2048.     rebo_obs[7].maxry = 29;
  2049.     rebo_obs[7].dely = 1;
  2050.     /*-------------------------*/
  2051.     rebo_obs[8].x = 18;
  2052.     rebo_obs[8].y = x.Next(33, 39);
  2053.     rebo_obs[8].minry = 33;
  2054.     rebo_obs[8].maxry = 39;
  2055.     rebo_obs[8].dely = 1;
  2056.  
  2057.     rebo_obs[9].x = 30;
  2058.     rebo_obs[9].y = x.Next(33, 39);
  2059.     rebo_obs[9].minry = 33;
  2060.     rebo_obs[9].maxry = 39;
  2061.     rebo_obs[9].dely = 1;
  2062.  
  2063.     rebo_obs[10].x = 42;
  2064.     rebo_obs[10].y = x.Next(33, 39);
  2065.     rebo_obs[10].minry = 33;
  2066.     rebo_obs[10].maxry = 39;
  2067.     rebo_obs[10].dely = 1;
  2068.  
  2069.     rebo_obs[11].x = 54;
  2070.     rebo_obs[11].y = x.Next(33, 39);
  2071.     rebo_obs[11].minry = 33;
  2072.     rebo_obs[11].maxry = 39;
  2073.     rebo_obs[11].dely = 1;
  2074.     /*-------------------------*//*-------------------------*/
  2075.     tronco[1].x = x.Next(0, 70);
  2076.     tronco[1].y = 7;
  2077.     tronco[1].delx = 1;
  2078.     /*-------------------------*/
  2079.     tronco[2].x = x.Next(0, 32);
  2080.     tronco[2].y = 5;
  2081.     tronco[2].delx = -1;
  2082.  
  2083.     tronco[3].x = x.Next(0, 70);
  2084.     tronco[3].y = 9;
  2085.     tronco[3].delx = -1;
  2086.  
  2087.     tronco[4].x = tronco[2].x + 36;
  2088.     tronco[4].y = 5;
  2089.     tronco[4].delx = -1;
  2090.     /*--------------------------------------------------*/
  2091.     Console::BackgroundColor = ConsoleColor::DarkGray;
  2092.     Console::ForegroundColor = ConsoleColor::Red;
  2093.     Console::SetCursorPosition(bonus_x, bonus_y);
  2094.     cout << char(201) << char(205) << char(187);
  2095.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  2096.     cout << char(200) << char(205) << char(188);
  2097.     while (exitmovement[5])
  2098.     {
  2099.         switch (m1[ry][rx])
  2100.         {
  2101.         case 3:
  2102.             Console::BackgroundColor = ConsoleColor::DarkGray;
  2103.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2104.             Console::SetCursorPosition(rx, ry);
  2105.             cout << (char)192 << (char)219 << (char)217;
  2106.             Console::SetCursorPosition(rx, ry + 1);
  2107.             cout << (char)218 << (char)223 << (char)191; break;
  2108.         }
  2109.         if (kbhit())
  2110.         {
  2111.             tecla = _getch();
  2112.             if (tecla == 224)
  2113.             {
  2114.                 switch (m1[ry][rx])
  2115.                 {
  2116.                 case 11:
  2117.                     Console::SetCursorPosition(rx, ry);
  2118.                     Console::BackgroundColor = ConsoleColor::Black;
  2119.                     cout << "   ";
  2120.                     Console::SetCursorPosition(rx, ry + 1);
  2121.                     cout << "   "; break;
  2122.                 case 9:
  2123.                     Console::BackgroundColor = ConsoleColor::Red;
  2124.                     Console::ForegroundColor = ConsoleColor::Yellow;
  2125.                     Console::SetCursorPosition(rx, ry);
  2126.                     cout << (char)176 << (char)176 << (char)176;
  2127.                     Console::SetCursorPosition(rx, ry + 1);
  2128.                     cout << (char)176 << (char)176 << (char)176; break;
  2129.                 case 3:
  2130.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2131.                     Console::ForegroundColor = ConsoleColor::Gray;
  2132.                     Console::SetCursorPosition(rx, ry);
  2133.                     cout << char(177) << char(177) << char(177);
  2134.                     Console::SetCursorPosition(rx, ry + 1);
  2135.                     cout << char(177) << char(177) << char(177); break;
  2136.                 case 7:
  2137.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2138.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2139.                     Console::SetCursorPosition(rx, ry);
  2140.                     cout << (char)192 << (char)219 << (char)217;
  2141.                     Console::SetCursorPosition(rx, ry + 1);
  2142.                     cout << (char)218 << (char)223 << (char)191; break;
  2143.                 }
  2144.                 tecla = _getch();
  2145.                 switch (tecla)
  2146.                 {
  2147.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  2148.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  2149.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  2150.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  2151.                 }
  2152.                 switch (m1[ry][rx])
  2153.                 {
  2154.                 case 11:
  2155.                     Console::BackgroundColor = ConsoleColor::Black;
  2156.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2157.                     Console::SetCursorPosition(rx, ry);
  2158.                     cout << (char)192 << (char)219 << (char)217;
  2159.                     Console::SetCursorPosition(rx, ry + 1);
  2160.                     cout << (char)218 << (char)223 << (char)191; break;
  2161.                 case 9:
  2162.                     Console::BackgroundColor = ConsoleColor::Red;
  2163.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2164.                     Console::SetCursorPosition(rx, ry);
  2165.                     cout << (char)192 << (char)219 << (char)217;
  2166.                     Console::SetCursorPosition(rx, ry + 1);
  2167.                     cout << (char)218 << (char)223 << (char)191; break;
  2168.                 case 3:
  2169.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2170.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2171.                     Console::SetCursorPosition(rx, ry);
  2172.                     cout << (char)192 << (char)219 << (char)217;
  2173.                     Console::SetCursorPosition(rx, ry + 1);
  2174.                     cout << (char)218 << (char)223 << (char)191; break;
  2175.                 }
  2176.             }
  2177.         }
  2178.         /*--------------------------------------------------*/
  2179.         _sleep(50);
  2180.         Timer(timersleep, 50, timer, vidas, rx, ry, 5);
  2181.         Console::BackgroundColor = ConsoleColor::Black;
  2182.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  2183.         Console::SetCursorPosition(txtx, txty);
  2184.         cout << "Vidas: ";
  2185.         Console::SetCursorPosition(txtx, txty + 1);
  2186.         cout << vidas[5];
  2187.         Console::SetCursorPosition(txtx, txty + 3);
  2188.         cout << "Time: ";
  2189.         Console::SetCursorPosition(txtx, txty + 4);
  2190.         cout << timer;
  2191.         Console::SetCursorPosition(txtx, txty + 6);
  2192.         cout << "Puntaje: ";
  2193.         Console::SetCursorPosition(txtx, txty + 7);
  2194.         cout << Puntaje;
  2195.  
  2196.         for (int i = 0; i < 12; i++)
  2197.         {
  2198.             objeto_rebotador(rebo_obs, i, rx, ry, vidas, 5);
  2199.         }
  2200.         /*-------------------------*//*-------------------------*/
  2201.  
  2202.         Troncolavazd(tronco, 1, rx, ry, m1, vidas, 5);
  2203.         Troncolavadz(tronco, 2, rx, ry, m1, vidas, 5);
  2204.         Troncolavadz(tronco, 3, rx, ry, m1, vidas, 5);
  2205.         Troncolavadz(tronco, 4, rx, ry, m1, vidas, 5);
  2206.  
  2207.         /*--------------------------------------------------*/
  2208.         func_Cuevas(cueva, 5, exitmovement, rx, ry, SumaCueva);
  2209.         if (rx == bonus_x&&ry == bonus_y)
  2210.         {
  2211.             vidas[5]++;
  2212.             bonus_x = bonus_x - 9;
  2213.             Puntaje += 100;
  2214.         }
  2215.         if (vidas[5] == 0)
  2216.         {
  2217.             exitmovement[5] = 0;
  2218.         }
  2219.     }
  2220.     Console::BackgroundColor = ConsoleColor::Black;
  2221. }
  2222. void Movimiento7(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  2223. {
  2224.     posctt * flecha = new posctt[31];
  2225.     posctt * enem_rebot = new posctt[19];
  2226.     Random x;
  2227.  
  2228.     int txtx = 82, txty = 17;
  2229.     int timer = 180, timersleep = 0;
  2230.  
  2231.     int *cueva = new int[5];
  2232.     int bonus_x = 78, bonus_y = 17;
  2233.  
  2234.     int tecla;
  2235.     int rx = 42;
  2236.     int ry = 41;
  2237.  
  2238.     enem_rebot[0].x = 51;
  2239.     enem_rebot[0].y = 3;
  2240.     enem_rebot[0].minry = 3;
  2241.     enem_rebot[0].maxry = x.Next(21, 41);
  2242.     enem_rebot[0].minrx = enem_rebot[0].x;
  2243.     enem_rebot[0].maxrx = 81;
  2244.     enem_rebot[0].dely = 1;
  2245.     enem_rebot[0].delx = 0;
  2246.  
  2247.     enem_rebot[1].x = 53;
  2248.     enem_rebot[1].y = 3;
  2249.     enem_rebot[1].minry = 7;
  2250.     enem_rebot[1].maxry = x.Next(21, 41);
  2251.     enem_rebot[1].minrx = enem_rebot[1].x;
  2252.     enem_rebot[1].maxrx = 81;
  2253.     enem_rebot[1].dely = 1;
  2254.     enem_rebot[1].delx = 0;
  2255.  
  2256.     enem_rebot[2].x = 55;
  2257.     enem_rebot[2].y = 3;
  2258.     enem_rebot[2].minry = 11;
  2259.     enem_rebot[2].maxry = x.Next(21, 41);
  2260.     enem_rebot[2].minrx = enem_rebot[2].x;
  2261.     enem_rebot[2].maxrx = 81;
  2262.     enem_rebot[2].dely = 1;
  2263.     enem_rebot[2].delx = 0;
  2264.  
  2265.     enem_rebot[3].x = 57;
  2266.     enem_rebot[3].y = 3;
  2267.     enem_rebot[3].minry = 5;
  2268.     enem_rebot[3].maxry = x.Next(21, 41);
  2269.     enem_rebot[3].minrx = enem_rebot[3].x;
  2270.     enem_rebot[3].maxrx = 81;
  2271.     enem_rebot[3].dely = 1;
  2272.     enem_rebot[3].delx = 0;
  2273.  
  2274.     enem_rebot[4].x = 59;
  2275.     enem_rebot[4].y = 3;
  2276.     enem_rebot[4].minry = 3;
  2277.     enem_rebot[4].maxry = x.Next(21, 41);
  2278.     enem_rebot[4].minrx = enem_rebot[4].x;
  2279.     enem_rebot[4].maxrx = 81;
  2280.     enem_rebot[4].dely = 1;
  2281.     enem_rebot[4].delx = 0;
  2282.  
  2283.     enem_rebot[5].x = 61;
  2284.     enem_rebot[5].y = 3;
  2285.     enem_rebot[5].minry = 8;
  2286.     enem_rebot[5].maxry = x.Next(21, 41);
  2287.     enem_rebot[5].minrx = enem_rebot[5].x;
  2288.     enem_rebot[5].maxrx = 81;
  2289.     enem_rebot[5].dely = 1;
  2290.     enem_rebot[5].delx = 0;
  2291.  
  2292.     enem_rebot[6].x = 63;
  2293.     enem_rebot[6].y = 3;
  2294.     enem_rebot[6].minry = 7;
  2295.     enem_rebot[6].maxry = x.Next(21, 41);
  2296.     enem_rebot[6].minrx = enem_rebot[6].x;
  2297.     enem_rebot[6].maxrx = 81;
  2298.     enem_rebot[6].dely = 1;
  2299.     enem_rebot[6].delx = 0;
  2300.  
  2301.     enem_rebot[7].x = 65;
  2302.     enem_rebot[7].y = 3;
  2303.     enem_rebot[7].minry = 19;
  2304.     enem_rebot[7].maxry = x.Next(21, 41);
  2305.     enem_rebot[7].minrx = enem_rebot[7].x;
  2306.     enem_rebot[7].maxrx = 81;
  2307.     enem_rebot[7].dely = 1;
  2308.     enem_rebot[7].delx = 0;
  2309.  
  2310.     enem_rebot[8].x = 67;
  2311.     enem_rebot[8].y = 3;
  2312.     enem_rebot[8].minry = 20;
  2313.     enem_rebot[8].maxry = x.Next(21, 41);
  2314.     enem_rebot[8].minrx = enem_rebot[8].x;
  2315.     enem_rebot[8].maxrx = 81;
  2316.     enem_rebot[8].dely = 1;
  2317.     enem_rebot[8].delx = 0;
  2318.  
  2319.     enem_rebot[9].x = 69;
  2320.     enem_rebot[9].y = 3;
  2321.     enem_rebot[9].minry = 5;
  2322.     enem_rebot[9].maxry = x.Next(21, 41);
  2323.     enem_rebot[9].minrx = enem_rebot[9].x;
  2324.     enem_rebot[9].maxrx = 81;
  2325.     enem_rebot[9].dely = 1;
  2326.     enem_rebot[9].delx = 0;
  2327.  
  2328.     enem_rebot[10].x = 71;
  2329.     enem_rebot[10].y = 3;
  2330.     enem_rebot[10].minry = x.Next(3, 21);
  2331.     enem_rebot[10].maxry = x.Next(21, 41);
  2332.     enem_rebot[10].minrx = enem_rebot[10].x;
  2333.     enem_rebot[10].maxrx = 81;
  2334.     enem_rebot[10].dely = 1;
  2335.     enem_rebot[10].delx = 0;
  2336.  
  2337.     enem_rebot[11].x = 73;
  2338.     enem_rebot[11].y = 3;
  2339.     enem_rebot[11].minry = x.Next(3, 21);
  2340.     enem_rebot[11].maxry = x.Next(21, 41);
  2341.     enem_rebot[11].minrx = enem_rebot[11].x;
  2342.     enem_rebot[11].maxrx = 81;
  2343.     enem_rebot[11].dely = 1;
  2344.     enem_rebot[11].delx = 0;
  2345.  
  2346.     enem_rebot[12].x = 75;
  2347.     enem_rebot[12].y = 3;
  2348.     enem_rebot[12].minry = x.Next(3, 21);
  2349.     enem_rebot[12].maxry = x.Next(21, 41);
  2350.     enem_rebot[12].minrx = enem_rebot[12].x;
  2351.     enem_rebot[12].maxrx = 81;
  2352.     enem_rebot[12].dely = 1;
  2353.     enem_rebot[12].delx = 0;
  2354.  
  2355.     enem_rebot[13].x = 51;
  2356.     enem_rebot[13].y = 3;
  2357.     enem_rebot[13].minry = 3;
  2358.     enem_rebot[13].maxry = 15;
  2359.     enem_rebot[13].minrx = enem_rebot[13].x;
  2360.     enem_rebot[13].maxrx = 81;
  2361.     enem_rebot[13].dely = 1;
  2362.     enem_rebot[13].delx = 0;
  2363.  
  2364.     enem_rebot[14].x = 51;
  2365.     enem_rebot[14].y = 3;
  2366.     enem_rebot[14].minry = 3;
  2367.     enem_rebot[14].maxry = 27;
  2368.     enem_rebot[14].minrx = enem_rebot[14].x;
  2369.     enem_rebot[14].maxrx = 81;
  2370.     enem_rebot[14].dely = 1;
  2371.     enem_rebot[14].delx = 0;
  2372.  
  2373.     enem_rebot[15].x = 51;
  2374.     enem_rebot[15].y = 3;
  2375.     enem_rebot[15].minry = 3;
  2376.     enem_rebot[15].maxry = 39;
  2377.     enem_rebot[15].minrx = enem_rebot[15].x;
  2378.     enem_rebot[15].maxrx = 81;
  2379.     enem_rebot[15].dely = 1;
  2380.     enem_rebot[15].delx = 0;
  2381.  
  2382.     enem_rebot[16].x = 55;
  2383.     enem_rebot[16].y = 3;
  2384.     enem_rebot[16].minry = 3;
  2385.     enem_rebot[16].maxry = 15;
  2386.     enem_rebot[16].minrx = enem_rebot[16].x;
  2387.     enem_rebot[16].maxrx = enem_rebot[16].x + 7;
  2388.     enem_rebot[16].dely = 1;
  2389.     enem_rebot[16].delx = 0;
  2390.  
  2391.     enem_rebot[17].x = 59;
  2392.     enem_rebot[17].y = 3;
  2393.     enem_rebot[17].minry = 3;
  2394.     enem_rebot[17].maxry = 27;
  2395.     enem_rebot[17].minrx = enem_rebot[17].x;
  2396.     enem_rebot[17].maxrx = enem_rebot[17].x + 7;
  2397.     enem_rebot[17].dely = 1;
  2398.     enem_rebot[17].delx = 0;
  2399.  
  2400.     enem_rebot[18].x = 67;
  2401.     enem_rebot[18].y = 3;
  2402.     enem_rebot[18].minry = 3;
  2403.     enem_rebot[18].maxry = 39;
  2404.     enem_rebot[18].minrx = enem_rebot[18].x;
  2405.     enem_rebot[18].maxrx = enem_rebot[18].x + 7;
  2406.     enem_rebot[18].dely = 1;
  2407.     enem_rebot[18].delx = 0;
  2408.     /*--------------------------------------------------*/
  2409.     flecha[0].x = 2;
  2410.     flecha[0].y = x.Next(3, 36);
  2411.     flecha[0].minry = 3;
  2412.     flecha[0].maxry = 38;
  2413.     flecha[0].dely = 1;
  2414.  
  2415.     flecha[1].x = 4;
  2416.     flecha[1].y = x.Next(3, 36);
  2417.     flecha[1].minry = 3;
  2418.     flecha[1].maxry = 38;
  2419.     flecha[1].dely = 1;
  2420.  
  2421.     flecha[2].x = 6;
  2422.     flecha[2].y = x.Next(3, 36);
  2423.     flecha[2].minry = 3;
  2424.     flecha[2].maxry = 38;
  2425.     flecha[2].dely = 1;
  2426.  
  2427.     flecha[3].x = 8;
  2428.     flecha[3].y = x.Next(3, 36);
  2429.     flecha[3].minry = 3;
  2430.     flecha[3].maxry = 38;
  2431.     flecha[3].dely = 1;
  2432.  
  2433.     flecha[4].x = 10;
  2434.     flecha[4].y = x.Next(3, 36);
  2435.     flecha[4].minry = 3;
  2436.     flecha[4].maxry = 38;
  2437.     flecha[4].dely = 1;
  2438.  
  2439.     flecha[5].x = 12;
  2440.     flecha[5].y = x.Next(3, 36);
  2441.     flecha[5].minry = 3;
  2442.     flecha[5].maxry = 38;
  2443.     flecha[5].dely = 1;
  2444.  
  2445.     flecha[6].x = 14;
  2446.     flecha[6].y = x.Next(3, 36);
  2447.     flecha[6].minry = 3;
  2448.     flecha[6].maxry = 38;
  2449.     flecha[6].dely = 1;
  2450.  
  2451.     flecha[7].x = 16;
  2452.     flecha[7].y = x.Next(3, 36);
  2453.     flecha[7].minry = 3;
  2454.     flecha[7].maxry = 38;
  2455.     flecha[7].dely = 1;
  2456.  
  2457.     flecha[8].x = 18;
  2458.     flecha[8].y = x.Next(3, 36);
  2459.     flecha[8].minry = 3;
  2460.     flecha[8].maxry = 38;
  2461.     flecha[8].dely = 1;
  2462.  
  2463.     flecha[9].x = 20;
  2464.     flecha[9].y = x.Next(3, 36);
  2465.     flecha[9].minry = 3;
  2466.     flecha[9].maxry = 38;
  2467.     flecha[9].dely = 1;
  2468.  
  2469.     flecha[10].x = 22;
  2470.     flecha[10].y = x.Next(3, 36);
  2471.     flecha[10].minry = 3;
  2472.     flecha[10].maxry = 38;
  2473.     flecha[10].dely = 1;
  2474.  
  2475.     flecha[11].x = 24;
  2476.     flecha[11].y = x.Next(3, 36);
  2477.     flecha[11].minry = 3;
  2478.     flecha[11].maxry = 38;
  2479.     flecha[11].dely = 1;
  2480.  
  2481.     flecha[12].x = 26;
  2482.     flecha[12].y = x.Next(3, 36);
  2483.     flecha[12].minry = 3;
  2484.     flecha[12].maxry = 38;
  2485.     flecha[12].dely = 1;
  2486.  
  2487.     flecha[13].x = 28;
  2488.     flecha[13].y = x.Next(3, 36);
  2489.     flecha[13].minry = 3;
  2490.     flecha[13].maxry = 38;
  2491.     flecha[13].dely = 1;
  2492.  
  2493.     flecha[14].x = 30;
  2494.     flecha[14].y = x.Next(3, 36);
  2495.     flecha[14].minry = 3;
  2496.     flecha[14].maxry = 38;
  2497.     flecha[14].dely = 1;
  2498.  
  2499.     flecha[15].x = 32;
  2500.     flecha[15].y = x.Next(3, 36);
  2501.     flecha[15].minry = 3;
  2502.     flecha[15].maxry = 38;
  2503.     flecha[15].dely = 1;
  2504.  
  2505.     flecha[16].x = 34;
  2506.     flecha[16].y = x.Next(3, 36);
  2507.     flecha[16].minry = 3;
  2508.     flecha[16].maxry = 38;
  2509.     flecha[16].dely = 1;
  2510.  
  2511.     flecha[17].x = 36;
  2512.     flecha[17].y = x.Next(3, 36);
  2513.     flecha[17].minry = 3;
  2514.     flecha[17].maxry = 38;
  2515.     flecha[17].dely = 1;
  2516.  
  2517.     flecha[18].x = 38;
  2518.     flecha[18].y = x.Next(3, 36);
  2519.     flecha[18].minry = 3;
  2520.     flecha[18].maxry = 38;
  2521.     flecha[18].dely = 1;
  2522.  
  2523.     flecha[19].x = 40;
  2524.     flecha[19].y = x.Next(3, 36);
  2525.     flecha[19].minry = 3;
  2526.     flecha[19].maxry = 38;
  2527.     flecha[19].dely = 1;
  2528.  
  2529.     flecha[20].x = 42;
  2530.     flecha[20].y = x.Next(3, 36);
  2531.     flecha[20].minry = 3;
  2532.     flecha[20].maxry = 38;
  2533.     flecha[20].dely = 1;
  2534.  
  2535.     flecha[21].x = 30;
  2536.     flecha[21].y = x.Next(3, 36);
  2537.     flecha[21].minry = 3;
  2538.     flecha[21].maxry = 38;
  2539.     flecha[21].dely = 1;
  2540.  
  2541.     flecha[22].x = 30;
  2542.     flecha[22].y = x.Next(3, 36);
  2543.     flecha[22].minry = 3;
  2544.     flecha[22].maxry = 38;
  2545.     flecha[22].dely = 1;
  2546.  
  2547.     flecha[23].x = 0;
  2548.     flecha[23].y = x.Next(3, 36);
  2549.     flecha[23].minry = 3;
  2550.     flecha[23].maxry = 38;
  2551.     flecha[23].dely = 1;
  2552.  
  2553.     flecha[24].x = 32;
  2554.     flecha[24].y = x.Next(3, 36);
  2555.     flecha[24].minry = 3;
  2556.     flecha[24].maxry = 38;
  2557.     flecha[24].dely = 1;
  2558.  
  2559.     flecha[25].x = 34;
  2560.     flecha[25].y = x.Next(3, 36);
  2561.     flecha[25].minry = 3;
  2562.     flecha[25].maxry = 38;
  2563.     flecha[25].dely = 1;
  2564.  
  2565.     flecha[26].x = 36;
  2566.     flecha[26].y = x.Next(3, 36);
  2567.     flecha[26].minry = 3;
  2568.     flecha[26].maxry = 38;
  2569.     flecha[26].dely = 1;
  2570.  
  2571.     flecha[27].x = 38;
  2572.     flecha[27].y = x.Next(3, 36);
  2573.     flecha[27].minry = 3;
  2574.     flecha[27].maxry = 38;
  2575.     flecha[27].dely = 1;
  2576.  
  2577.     flecha[28].x = 40;
  2578.     flecha[28].y = x.Next(3, 36);
  2579.     flecha[28].minry = 3;
  2580.     flecha[28].maxry = 38;
  2581.     flecha[28].dely = 1;
  2582.  
  2583.     flecha[29].x = 42;
  2584.     flecha[29].y = x.Next(3, 36);
  2585.     flecha[29].minry = 3;
  2586.     flecha[29].maxry = 38;
  2587.     flecha[29].dely = 1;
  2588.  
  2589.     flecha[30].x = 44;
  2590.     flecha[30].y = x.Next(3, 36);
  2591.     flecha[30].minry = 3;
  2592.     flecha[30].maxry = 38;
  2593.     flecha[30].dely = 1;
  2594.     /*--------------------------------------------------*/
  2595.     Console::BackgroundColor = ConsoleColor::Black;
  2596.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  2597.     Console::SetCursorPosition(bonus_x, bonus_y);
  2598.     cout << char(201) << char(205) << char(187);
  2599.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  2600.     cout << char(200) << char(205) << char(188);
  2601.     while (exitmovement[6])
  2602.     {
  2603.         switch (m1[ry][rx])
  2604.         {
  2605.         case 3:
  2606.             Console::SetCursorPosition(rx, ry);
  2607.             Console::BackgroundColor = ConsoleColor::DarkGray;
  2608.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2609.             cout << (char)192 << (char)219 << (char)217;
  2610.             Console::SetCursorPosition(rx, ry + 1);
  2611.             cout << (char)218 << (char)223 << (char)191; break;
  2612.         }
  2613.         if (kbhit())
  2614.         {
  2615.             tecla = _getch();
  2616.             if (tecla == 224)
  2617.             {
  2618.                 switch (m1[ry][rx])
  2619.                 {
  2620.                 case 14:
  2621.                     Console::SetCursorPosition(rx, ry);
  2622.                     Console::BackgroundColor = ConsoleColor::Black;
  2623.                     cout << "   ";
  2624.                     Console::SetCursorPosition(rx, ry + 1);
  2625.                     cout << "   ";  break;
  2626.                 case 3:
  2627.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2628.                     Console::ForegroundColor = ConsoleColor::Gray;
  2629.                     Console::SetCursorPosition(rx, ry);
  2630.                     cout << char(177) << char(177) << char(177);
  2631.                     Console::SetCursorPosition(rx, ry + 1);
  2632.                     cout << char(177) << char(177) << char(177); break;
  2633.                 case 4:
  2634.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  2635.                     Console::SetCursorPosition(rx, ry);
  2636.                     cout << "   ";
  2637.                     Console::SetCursorPosition(rx, ry + 1);
  2638.                     cout << "   ";  break;
  2639.                 }
  2640.                 tecla = _getch();
  2641.                 switch (tecla)
  2642.                 {
  2643.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  2644.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  2645.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  2646.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  2647.                 }
  2648.                 switch (m1[ry][rx])
  2649.                 {
  2650.                 case 14:
  2651.                     Console::SetCursorPosition(rx, ry);
  2652.                     Console::BackgroundColor = ConsoleColor::Black;
  2653.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2654.                     cout << (char)192 << (char)219 << (char)217;
  2655.                     Console::SetCursorPosition(rx, ry + 1);
  2656.                     cout << (char)218 << (char)223 << (char)191; break;
  2657.                 case 3:
  2658.                     Console::SetCursorPosition(rx, ry);
  2659.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2660.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2661.                     cout << (char)192 << (char)219 << (char)217;
  2662.                     Console::SetCursorPosition(rx, ry + 1);
  2663.                     cout << (char)218 << (char)223 << (char)191; break;
  2664.                 case 4:
  2665.                     Console::BackgroundColor = ConsoleColor::DarkGreen;
  2666.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2667.                     Console::SetCursorPosition(rx, ry);
  2668.                     cout << (char)192 << (char)219 << (char)217;
  2669.                     Console::SetCursorPosition(rx, ry + 1);
  2670.                     cout << (char)218 << (char)223 << (char)191; break;
  2671.                 case 6:
  2672.                     Console::BackgroundColor = ConsoleColor::Black;
  2673.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2674.                     Console::SetCursorPosition(rx, ry);
  2675.                     cout << (char)192 << (char)219 << (char)217;
  2676.                     Console::SetCursorPosition(rx, ry + 1);
  2677.                     cout << (char)218 << (char)223 << (char)191; break;
  2678.                 }
  2679.             }
  2680.  
  2681.         }
  2682.         /*--------------------------------------------------*/
  2683.         _sleep(50);
  2684.         Timer(timersleep, 50, timer, vidas, rx, ry, 6);
  2685.         Console::BackgroundColor = ConsoleColor::Black;
  2686.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  2687.         Console::SetCursorPosition(txtx, txty);
  2688.         cout << "Vidas: ";
  2689.         Console::SetCursorPosition(txtx, txty + 1);
  2690.         cout << vidas[6];
  2691.         Console::SetCursorPosition(txtx, txty + 3);
  2692.         cout << "Time: ";
  2693.         Console::SetCursorPosition(txtx, txty + 4);
  2694.         cout << timer;
  2695.         Console::SetCursorPosition(txtx, txty + 6);
  2696.         cout << "Puntaje: ";
  2697.         Console::SetCursorPosition(txtx, txty + 7);
  2698.         cout << Puntaje;
  2699.         for (int i = 0; i < 31; i++)
  2700.         {
  2701.             Flecha(flecha, i, rx, ry, vidas, 6);
  2702.         }
  2703.         for (int i = 0; i < 19; i++)
  2704.         {
  2705.             enemigo_rebotador(enem_rebot, i, rx, ry, vidas, 6);
  2706.         }
  2707.         func_Cuevas(cueva, 6, exitmovement, rx, ry, SumaCueva);
  2708.  
  2709.         if (rx == bonus_x&&ry == bonus_y)
  2710.         {
  2711.             vidas[6]++;
  2712.             bonus_x = bonus_x - 9;
  2713.             Puntaje += 100;
  2714.         }
  2715.         if (vidas[6] == 0)
  2716.         {
  2717.             exitmovement[6] = 0;
  2718.         }
  2719.     }
  2720.     Console::BackgroundColor = ConsoleColor::Black;
  2721. }
  2722. void Movimiento8(int m1[43][81], int *exitmovement, int *SumaCueva, int*vidas, int & Puntaje)
  2723. {
  2724.     posctt * enemigos = new posctt[18];
  2725.     Random x;
  2726.  
  2727.     int *cueva = new int[5];
  2728.  
  2729.     int txtx = 82, txty = 17;
  2730.     int timer = 180, timersleep = 0;
  2731.  
  2732.     int bonus_x = 39, bonus_y = 21;
  2733.  
  2734.     int tecla;
  2735.     int rx = 42;
  2736.     int ry = 41;
  2737.     /*--------------------------------------------------*/
  2738.     enemigos[0].x = 0;
  2739.     enemigos[0].y = 3;
  2740.     enemigos[0].minry = 3;
  2741.     enemigos[0].maxry = 39;
  2742.     enemigos[0].minrx = enemigos[0].x;
  2743.     enemigos[0].maxrx = 78;
  2744.     enemigos[0].dely = 2;
  2745.     enemigos[0].delx = 0;
  2746.  
  2747.     enemigos[1].x = 3;
  2748.     enemigos[1].y = 5;
  2749.     enemigos[1].minry = 5;
  2750.     enemigos[1].maxry = 37;
  2751.     enemigos[1].minrx = enemigos[1].x;
  2752.     enemigos[1].maxrx = 75;
  2753.     enemigos[1].dely = 2;
  2754.     enemigos[1].delx = 0;
  2755.  
  2756.     enemigos[2].x = 6;
  2757.     enemigos[2].y = 7;
  2758.     enemigos[2].minry = 7;
  2759.     enemigos[2].maxry = 35;
  2760.     enemigos[2].minrx = enemigos[2].x;
  2761.     enemigos[2].maxrx = 72;
  2762.     enemigos[2].dely = 2;
  2763.     enemigos[2].delx = 0;
  2764.  
  2765.     enemigos[3].x = 9;
  2766.     enemigos[3].y = 9;
  2767.     enemigos[3].minry = 9;
  2768.     enemigos[3].maxry = 33;
  2769.     enemigos[3].minrx = enemigos[3].x;
  2770.     enemigos[3].maxrx = 69;
  2771.     enemigos[3].dely = 2;
  2772.     enemigos[3].delx = 0;
  2773.  
  2774.     enemigos[4].x = 12;
  2775.     enemigos[4].y = 11;
  2776.     enemigos[4].minry = 11;
  2777.     enemigos[4].maxry = 31;
  2778.     enemigos[4].minrx = enemigos[4].x;
  2779.     enemigos[4].maxrx = 66;
  2780.     enemigos[4].dely = 2;
  2781.     enemigos[4].delx = 0;
  2782.  
  2783.     enemigos[5].x = 15;
  2784.     enemigos[5].y = 13;
  2785.     enemigos[5].minry = 13;
  2786.     enemigos[5].maxry = 29;
  2787.     enemigos[5].minrx = enemigos[5].x;
  2788.     enemigos[5].maxrx = 63;
  2789.     enemigos[5].dely = 2;
  2790.     enemigos[5].delx = 0;
  2791.  
  2792.     enemigos[6].x = 18;
  2793.     enemigos[6].y = 15;
  2794.     enemigos[6].minry = 15;
  2795.     enemigos[6].maxry = 27;
  2796.     enemigos[6].minrx = enemigos[6].x;
  2797.     enemigos[6].maxrx = 60;
  2798.     enemigos[6].dely = 2;
  2799.     enemigos[6].delx = 0;
  2800.  
  2801.     enemigos[7].x = 21;
  2802.     enemigos[7].y = 17;
  2803.     enemigos[7].minry = 17;
  2804.     enemigos[7].maxry = 25;
  2805.     enemigos[7].minrx = enemigos[7].x;
  2806.     enemigos[7].maxrx = 57;
  2807.     enemigos[7].dely = 2;
  2808.     enemigos[7].delx = 0;
  2809.  
  2810.     enemigos[8].x = 24;
  2811.     enemigos[8].y = 19;
  2812.     enemigos[8].minry = 19;
  2813.     enemigos[8].maxry = 23;
  2814.     enemigos[8].minrx = enemigos[8].x;
  2815.     enemigos[8].maxrx = 54;
  2816.     enemigos[8].dely = 2;
  2817.     enemigos[8].delx = 0;
  2818.     /*--------------------------------------------------*/
  2819.     Console::BackgroundColor = ConsoleColor::Black;
  2820.     Console::ForegroundColor = ConsoleColor::DarkGreen;
  2821.     Console::SetCursorPosition(bonus_x, bonus_y);
  2822.     cout << char(201) << char(205) << char(187);
  2823.     Console::SetCursorPosition(bonus_x, bonus_y + 1);
  2824.     cout << char(200) << char(205) << char(188);
  2825.     while (exitmovement[7])
  2826.     {
  2827.         switch (m1[ry][rx])
  2828.         {
  2829.         case 3:
  2830.             Console::SetCursorPosition(rx, ry);
  2831.             Console::BackgroundColor = ConsoleColor::DarkGray;
  2832.             Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2833.             cout << (char)192 << (char)219 << (char)217;
  2834.             Console::SetCursorPosition(rx, ry + 1);
  2835.             cout << (char)218 << (char)223 << (char)191;
  2836.             break;
  2837.         }
  2838.         if (kbhit())
  2839.         {
  2840.             tecla = _getch();
  2841.             if (tecla == 224)
  2842.             {
  2843.                 switch (m1[ry][rx])
  2844.                 {
  2845.                 case 15:
  2846.                     Console::BackgroundColor = ConsoleColor::Black;
  2847.                     Console::SetCursorPosition(rx, ry);
  2848.                     cout << char(177) << char(177) << char(177);
  2849.                     Console::SetCursorPosition(rx, ry + 1);
  2850.                     cout << char(177) << char(177) << char(177);
  2851.                     break;
  2852.                 case 14:
  2853.                     Console::BackgroundColor = ConsoleColor::Black;
  2854.                     Console::SetCursorPosition(rx, ry);
  2855.                     cout << "   ";
  2856.                     Console::SetCursorPosition(rx, ry + 1);
  2857.                     cout << "   ";  break;
  2858.                 case 3:
  2859.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2860.                     Console::ForegroundColor = ConsoleColor::Gray;
  2861.                     Console::SetCursorPosition(rx, ry);
  2862.                     cout << char(177) << char(177) << char(177);
  2863.                     Console::SetCursorPosition(rx, ry + 1);
  2864.                     cout << char(177) << char(177) << char(177);
  2865.                     break;
  2866.                 }
  2867.                 tecla = _getch();
  2868.                 switch (tecla)
  2869.                 {
  2870.                 case 77:if ((m1[ry][rx + 3] != 1) && rx < 78)rx += 3; break;
  2871.                 case 75:if ((m1[ry][rx - 3] != 1) && rx > 0)rx -= 3; break;
  2872.                 case 72:if ((m1[ry - 2][rx] != 1) && ry > 0)ry -= 2; break;
  2873.                 case 80:if ((m1[ry + 2][rx] != 1) && ry < 41)ry += 2; break;
  2874.                 }
  2875.                 switch (m1[ry][rx])
  2876.                 {
  2877.                 case 14:
  2878.                     Console::SetCursorPosition(rx, ry);
  2879.                     Console::BackgroundColor = ConsoleColor::Black;
  2880.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2881.                     cout << (char)192 << (char)219 << (char)217;
  2882.                     Console::SetCursorPosition(rx, ry + 1);
  2883.                     cout << (char)218 << (char)223 << (char)191; break;
  2884.                 case 3:
  2885.                     Console::BackgroundColor = ConsoleColor::DarkGray;
  2886.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2887.                     Console::SetCursorPosition(rx, ry);
  2888.                     cout << (char)192 << (char)219 << (char)217;
  2889.                     Console::SetCursorPosition(rx, ry + 1);
  2890.                     cout << (char)218 << (char)223 << (char)191; break;
  2891.                 case 6:
  2892.                     Console::BackgroundColor = ConsoleColor::Black;
  2893.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2894.                     Console::SetCursorPosition(rx, ry);
  2895.                     cout << (char)192 << (char)219 << (char)217;
  2896.                     Console::SetCursorPosition(rx, ry + 1);
  2897.                     cout << (char)218 << (char)223 << (char)191; break;
  2898.                 case 15:
  2899.                     Console::BackgroundColor = ConsoleColor::Black;
  2900.                     Console::ForegroundColor = ConsoleColor::DarkMagenta;
  2901.                     Console::SetCursorPosition(rx, ry);
  2902.                     cout << (char)192 << (char)219 << (char)217;
  2903.                     Console::SetCursorPosition(rx, ry + 1);
  2904.                     cout << (char)218 << (char)223 << (char)191;
  2905.                     break;
  2906.                 }
  2907.             }
  2908.         }
  2909.         /*--------------------------------------------------*/
  2910.         _sleep(30);
  2911.         Timer(timersleep, 30, timer, vidas, rx, ry, 7);
  2912.         Console::BackgroundColor = ConsoleColor::Black;
  2913.         Console::ForegroundColor = ConsoleColor::DarkGreen;
  2914.         Console::SetCursorPosition(txtx, txty);
  2915.         cout << "Vidas: ";
  2916.         Console::SetCursorPosition(txtx, txty + 1);
  2917.         cout << vidas[7];
  2918.         Console::SetCursorPosition(txtx, txty + 3);
  2919.         cout << "Time: ";
  2920.         Console::SetCursorPosition(txtx, txty + 4);
  2921.         cout << timer;
  2922.         Console::SetCursorPosition(txtx, txty + 6);
  2923.         cout << "Puntaje: ";
  2924.         Console::SetCursorPosition(txtx, txty + 7);
  2925.         cout << Puntaje;
  2926.         /*--------------------------------------------------*//*------------------------------------------------------------------------------------------------------------------------------------------------------*//*------------------------------------------------------------------------------------------------------------------------------------------------------*//*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  2927.     int Map1[43][81] =
  2928.     {
  2929.         //0         5   6     9      13      17    18        23  24    27      31      35    36        41  42    45      49      53    54        59  60    63      67      71    72        77
  2930.         { 1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1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,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },       // 25
  2982.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },       // 26
  2983.     };
  2984.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  2985.     int Map2[43][81] =
  2986.     {
  2987.         //0         5         6     9      13       17               18        23        24    27      31      35                36        41        42    45      49      53                54        59        60    63      67      71                72        77
  2988.         { 1,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1,1,1 },    // 0         
  2989.         { 1,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1,1,1 },    // 1         
  2990.         { 1,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,8,8,8,8,1,1,1 },    // 2         
  2991.  
  2992.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4 ,4,4,4 },   // 23    
  2993.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4 ,4,4,4 },   // 24      
  2994.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 5  
  2995.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 6
  2996.  
  2997.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 7  
  2998.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 8
  2999.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 9  
  3000.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 10
  3001.  
  3002.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 11
  3003.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 12
  3004.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 13
  3005.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 14
  3006.  
  3007.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 15
  3008.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 16
  3009.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 17
  3010.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 18
  3011.  
  3012.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 19
  3013.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 20
  3014.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 21    
  3015.         { 5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5    ,5,5,5 ,5,5,5 },   // 22    
  3016.  
  3017.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4 ,4,4,4 },   // 23    
  3018.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4 ,4,4,4 },   // 24    
  3019.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },  // 25  
  3020.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },  // 26    
  3021.  
  3022.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 27    
  3023.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 28
  3024.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },   // 29
  3025.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 30
  3026.  
  3027.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 31
  3028.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 }, // 32
  3029.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 33
  3030.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },// 34
  3031.  
  3032.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 }, // 35
  3033.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 }, // 36
  3034.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },   // 37
  3035.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },   // 38  
  3036.  
  3037.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },  // 39      
  3038.         { 10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 ,10,10,10 },  // 40       
  3039.         { 3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3 ,3,3,3 },   // 41      
  3040.         { 3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3 ,3,3,3 },   // 42          
  3041.     };
  3042.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3043.     int Map3[43][81] =
  3044.     {
  3045.         //0         5   6     9      13      17    18        23  24    27      31      35    36        41  42    45      49      53    54        59  60    63      67      71    72        77
  3046.         { 1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1,1,1 },     // 0  
  3047.         { 1,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1,1,1 },     // 1  
  3048.         { 1,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1,1,1 },     // 2  
  3049.  
  3050.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4 ,4,4,4 },   // 23    
  3051.         { 4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4,4,4    ,4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,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 ,5,5,5 },      // 40
  3097.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },      // 41
  3098.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },      // 42
  3099.  
  3100.     };
  3101.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3102.     int Map4[43][81] =
  3103.     {
  3104.         //0         5   6     9      13      17    18        23  24    27      31      35    36        41  42    45      49      53    54        59  60    63      67      71    72        77
  3105.         { 1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1,1,1 },    // 0  
  3106.         { 1,1,8,8,8,8,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,8,8,8,8,1  ,1,1,1,1,1,1,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 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },      // 42
  3158.     };
  3159.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3160.     int Map5[43][81] =
  3161.     {
  3162.         //0         5   6     9      13      17    18        23  24    27      31      35    36        41  42    45      49      53    54        59  60    63      67      71    72        77
  3163.         { 1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1,1,1 },   // 0  
  3164.         { 1,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1,1,1 },   // 1  
  3165.         { 1,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,7,7,7,7,1,1,1 },   // 2  
  3166.  
  3167.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3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,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 },     // 39
  3213.         { 9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 ,9,9,9 },     // 40
  3214.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },     // 41
  3215.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },    // 42
  3216.     };
  3217.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3218.     int Map6[43][81] =
  3219.     {
  3220.         //0         5         6     9      13       17               18        23        24    27      31      35                36        41        42    45      49      53                54        59        60    63      67      71                72        77
  3221.         { 1,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,1,1,1,1,1,1,1 },   // 0
  3222.         { 1,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1,1,1 },   // 1
  3223.         { 1,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1        ,1,1,1,1,1,1,1,1,1,1,1,1                ,1,7,7,7,7,1,1,1 },   // 2
  3224.  
  3225.         { 3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3 },
  3226.         { 3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3    ,3,3,3 },
  3227.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 5
  3228.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 6
  3229.  
  3230.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 7
  3231.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 8
  3232.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 9
  3233.         { 9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9    ,9,9,9 ,9,9,9 },   // 10
  3234.  
  3235.         { 1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,3,3,3    ,3,3,3    ,3,3,3 },   // 11
  3236.         { 1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,3,3,3    ,3,3,3    ,3,3,3 },   // 12
  3237.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 13
  3238.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 14
  3239.  
  3240.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 15
  3241.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 16
  3242.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 17
  3243.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 18
  3244.  
  3245.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 25
  3246.         { 11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 26
  3247.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,1,1,1    ,1,1,1 ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1       ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 23
  3248.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,1,1,1    ,1,1,1 ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1       ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 24
  3249.  
  3250.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 19
  3251.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 20
  3252.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 21
  3253.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 22
  3254.  
  3255.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 27
  3256.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 28
  3257.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 33
  3258.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 34
  3259.  
  3260.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 29
  3261.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 },   // 30
  3262.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 31
  3263.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 32
  3264.  
  3265.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 35
  3266.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 36
  3267.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 37
  3268.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 38
  3269.  
  3270.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 39
  3271.         { 11,11,11 ,11,11,11 ,11,11,11 ,1,1,1    ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11  ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 ,11,11,11 },   // 40
  3272.         { 3,3,3    ,3,3,3    ,3,3,3    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1 },   // 41
  3273.         { 3,3,3    ,3,3,3    ,3,3,3    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1     ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1    ,1,1,1 },   // 42
  3274.     };
  3275.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3276.     int Map7[43][81] =
  3277.     {
  3278.         //0          6          9      13       17               18        23        24    27      31      35                36        41        42    45      49      53                54        59        60    63      67      71                72        77/*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3279.     int Map8[43][81] =
  3280.     {
  3281.         //0         5         6     9      13       17               18        23        24    27      31      35                36        41        42    45      49      53                54        59        60    63      67      71                72        77
  3282.         { 1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,1,1,1,1,1,1,1 },
  3283.         { 1,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1,1,1 },
  3284.         { 1,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1  ,1,1,1,1,1,1,1,1,1,1,1,1    ,1,6,6,6,6,1,1,1 },
  3285.  
  3286.         { 14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 },
  3287.         { 14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 ,14,14,14 },
  3288.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3289.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3290.  
  3291.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3292.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3293.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3294.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3295.  
  3296.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3297.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3298.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3299.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3300.         //0      3      6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6         6    
  3301.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3302.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3303.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3304.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3305.  
  3306.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3307.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3308.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3309.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3310.  
  3311.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3312.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3313.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3314.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3315.  
  3316.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3317.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3318.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3319.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3320.  
  3321.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3322.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3323.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3324.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3325.  
  3326.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3327.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3328.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3329.         { 14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 },
  3330.  
  3331.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3332.         { 15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 ,15,15,15 ,15,15,15 ,14,14,14 ,14,14,14 },
  3333.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },
  3334.         { 3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 ,3,3,3 },
  3335.     };
  3336.     /*------------------------------------------------------------------------------------------------------------------------------------------------------*/
  3337.     //DibujaMapa(Map1);
  3338.     //Movimiento1(Map1, Exitmove, SumaCueva, Vidas, Puntaje);
  3339.     //_getch();
  3340.     //Console::Clear();
  3341.     //DibujaMapa(Map2);
  3342.     //Movimiento2(Map2, Exitmove, SumaCueva, Vidas, Puntaje);
  3343.     //_getch();
  3344.     //Console::Clear();
  3345.     //DibujaMapa(Map3);
  3346.     //Movimiento3(Map3, Exitmove, SumaCueva, Vidas, Puntaje);
  3347.     //_getch();
  3348.     /*Console::Clear();
  3349.     DibujaMapa(Map4);
  3350.     Movimiento4(Map4, Exitmove, SumaCueva, Vidas, Puntaje);
  3351.     _getch();*/
  3352.     //Console::Clear();
  3353.     //DibujaMapa(Map5);
  3354.     //Movimiento5(Map5, Exitmove, SumaCueva, Vidas, Puntaje);
  3355.     //_getch();
  3356.     //Console::Clear();
  3357.     //DibujaMapa(Map6);
  3358.     //Movimiento6(Map6, Exitmove, SumaCueva, Vidas, Puntaje);
  3359.     //_getch();
  3360.     //Console::Clear();
  3361.     /*DibujaMapa(Map7);
  3362.     Movimiento7(Map7, Exitmove, SumaCueva, Vidas, Puntaje);
  3363.     _getch();
  3364.     Console::Clear();*/
  3365.     /*DibujaMapa(Map8);
  3366.     Movimiento8(Map8, Exitmove, SumaCueva, Vidas, Puntaje);
  3367.     _getch();
  3368.     Console::Clear();*/
  3369.  
  3370.     DibujaMapa(ScreenInicio);
  3371.     Screen_Inicio(ScreenInicio);
  3372.     _getch();
  3373.     Console::Clear();
  3374.     /*-------------------------*/
  3375.     DibujaMapa(FondoNegro);
  3376.     Instrucciones(FondoNegro);
  3377.     _getch();
  3378.     Console::Clear();
  3379.     /*-------------------------*/
  3380.     DibujaMapa(Map1);
  3381.     Movimiento1(Map1, Exitmove, SumaCueva, Vidas, Puntaje);
  3382.     _getch();
  3383.     Console::Clear();
  3384.     if (SumaCueva[0] == 5)
  3385.     {
  3386.         DibujaMapa(Map2);
  3387.         Movimiento2(Map2, Exitmove, SumaCueva, Vidas, Puntaje);
  3388.         _getch();
  3389.         Console::Clear();
  3390.         if (SumaCueva[1] == 5)
  3391.         {
  3392.             DibujaMapa(Map4);
  3393.             Movimiento4(Map4, Exitmove, SumaCueva, Vidas, Puntaje);
  3394.             _getch();
  3395.             Console::Clear();
  3396.             if (SumaCueva[3] == 5)
  3397.             {
  3398.                 DibujaMapa(Map3);
  3399.                 Movimiento3(Map3, Exitmove, SumaCueva, Vidas, Puntaje);
  3400.                 _getch();
  3401.                 Console::Clear();
  3402.                 if (SumaCueva[2] == 5)
  3403.                 {
  3404.                     DibujaMapa(Map5);
  3405.                     Movimiento5(Map5, Exitmove, SumaCueva, Vidas, Puntaje);
  3406.                     _getch();
  3407.                     Console::Clear();
  3408.                     if (SumaCueva[4] == 5)
  3409.                     {
  3410.                         DibujaMapa(Map6);
  3411.                         Movimiento6(Map6, Exitmove, SumaCueva, Vidas, Puntaje);
  3412.                         _getch();
  3413.                         Console::Clear();
  3414.                         if (SumaCueva[5] == 5)
  3415.                         {
  3416.                             DibujaMapa(Map7);
  3417.                             Movimiento7(Map7, Exitmove, SumaCueva, Vidas, Puntaje);
  3418.                             _getch();
  3419.                             Console::Clear();
  3420.                             if (SumaCueva[6] == 5)
  3421.                             {
  3422.                                 DibujaMapa(Map8);
  3423.                                 Movimiento8(Map8, Exitmove, SumaCueva, Vidas, Puntaje);
  3424.                                 _getch();
  3425.                                 if (SumaCueva[7] == 5)
  3426.                                 {
  3427.                                     Console::BackgroundColor = ConsoleColor::Black;
  3428.                                     DibujaMapa(BannerWin);
  3429.                                     Winner_Banner(BannerWin);
  3430.                                     _getch();
  3431.                                     Console::Clear();
  3432.                                 }
  3433.                             }
  3434.                             else
  3435.                             {
  3436.                                 if (Vidas[6] == 0)
  3437.                                 {
  3438.                                     Console::BackgroundColor = ConsoleColor::Black;
  3439.                                     DibujaMapa(BannerLose);
  3440.                                     Loser_Banner(BannerLose);
  3441.                                     _getch();
  3442.                                     Console::Clear();
  3443.                                 }
  3444.                             }
  3445.                         }
  3446.                         else
  3447.                         {
  3448.                             if (Vidas[5] == 0)
  3449.                             {
  3450.                                 Console::BackgroundColor = ConsoleColor::Black;
  3451.                                 DibujaMapa(BannerLose);
  3452.                                 Loser_Banner(BannerLose);
  3453.                                 _getch();
  3454.                                 Console::Clear();
  3455.                             }
  3456.                         }
  3457.                     }
  3458.                     else
  3459.                     {
  3460.                         if (Vidas[4] == 0)
  3461.                         {
  3462.                             Console::BackgroundColor = ConsoleColor::Black;
  3463.                             DibujaMapa(BannerLose);
  3464.                             Loser_Banner(BannerLose);
  3465.                             _getch();
  3466.                             Console::Clear();
  3467.                         }
  3468.                     }
  3469.                 }
  3470.                 else
  3471.                 {
  3472.                     if (Vidas[2] == 0)
  3473.                     {
  3474.                         Console::BackgroundColor = ConsoleColor::Black;
  3475.                         DibujaMapa(BannerLose);
  3476.                         Loser_Banner(BannerLose);
  3477.                         _getch();
  3478.                         Console::Clear();
  3479.                     }
  3480.                 }
  3481.             }
  3482.             else
  3483.             {
  3484.                 if (Vidas[3] == 0)
  3485.                 {
  3486.                     Console::BackgroundColor = ConsoleColor::Black;
  3487.                     DibujaMapa(BannerLose);
  3488.                     Loser_Banner(BannerLose);
  3489.                     _getch();
  3490.                     Console::Clear();
  3491.                 }
  3492.             }
  3493.         }
  3494.         else
  3495.         {
  3496.             if (Vidas[1] == 0)
  3497.             {
  3498.                 Console::BackgroundColor = ConsoleColor::Black;
  3499.                 DibujaMapa(BannerLose);
  3500.                 Loser_Banner(BannerLose);
  3501.                 _getch();
  3502.                 Console::Clear();
  3503.             }
  3504.         }
  3505.     }
  3506.     else
  3507.     {
  3508.         if (Vidas[0] == 0)
  3509.         {
  3510.             Console::BackgroundColor = ConsoleColor::Black;
  3511.             DibujaMapa(BannerLose);
  3512.             Loser_Banner(BannerLose);
  3513.             _getch();
  3514.             Console::Clear();
  3515.         }
  3516.     }
  3517.     Console::Clear();
  3518.     return 0;
  3519. }
Advertisement
Add Comment
Please, Sign In to add comment