Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.02 KB | None | 0 0
  1. #include<iostream>
  2. #include<time.h>
  3. #include<stdlib.h>
  4. #include<conio.h>
  5. #include <ctype.h>
  6. #include<windows.h>
  7. #include<vector>
  8. #include<ctime>//cronometro
  9. #include<cstdlib>//cronometro
  10.  
  11. using namespace std;
  12. using namespace System;
  13. #define ARRIBA 72
  14. #define IZQUIERDA 75
  15. #define ABAJO 80
  16. #define DERECHA 77
  17. #define filas 2
  18. #define columnas 5
  19. #define DISPARAR 32
  20.  
  21. #define ALEATORIO(INI, FIN) rand() % (FIN - INI + 1) + INI
  22.  
  23. enum Color { NEGRO, BLANCO, AZUL, ROJO, VERDE, AMARILLO };
  24.  
  25. void cambiarColorFondo(Color miColor) {
  26. switch (miColor)
  27. {
  28. case NEGRO: Console::BackgroundColor = ConsoleColor::Black; break;
  29. case BLANCO: Console::BackgroundColor = ConsoleColor::White; break;
  30. case AZUL: Console::BackgroundColor = ConsoleColor::Blue; break;
  31. case ROJO: Console::BackgroundColor = ConsoleColor::Red; break;
  32. case VERDE: Console::BackgroundColor = ConsoleColor::Green; break;
  33. case AMARILLO: Console::BackgroundColor = ConsoleColor::Yellow; break;
  34. }
  35. }
  36. void cambiarColorCaracter(Color miColor) {
  37. switch (miColor)
  38. {
  39. case NEGRO: Console::ForegroundColor = ConsoleColor::Black; break;
  40. case BLANCO: Console::ForegroundColor = ConsoleColor::White; break;
  41. case AZUL: Console::ForegroundColor = ConsoleColor::Blue; break;
  42. case ROJO: Console::ForegroundColor = ConsoleColor::Red; break;
  43. case VERDE: Console::ForegroundColor = ConsoleColor::Green; break;
  44. case AMARILLO: Console::ForegroundColor = ConsoleColor::Yellow; break;
  45. }
  46. }
  47. void gotoxy(int x, int y) {
  48. Console::SetCursorPosition(x, y);
  49. }
  50.  
  51. struct Personaje
  52. {
  53. short x, y, pasos, vidas=4;
  54. char matriz[filas][columnas] = { { ' ','|','*','|',' ' },
  55. { 'o','{','+','}','o' } };
  56. int X() { return x; }
  57. int Y() { return y; }
  58. Personaje(short _x = 50, short _y = 25, short _vidas = 3) {
  59. x = _x;
  60. y = _y;
  61. vidas = _vidas;
  62. }
  63. void pintar() {
  64. cambiarColorCaracter(VERDE);
  65. for (int i = 0; i <filas; i++) {
  66. for (int j = 0; j<columnas; j++) {
  67. gotoxy(x + j, y + i);
  68. cout << matriz[i][j];
  69. }
  70. }
  71. }
  72. void borrar() {
  73. for (int i = 0; i <filas; i++) {
  74. for (int j = 0; j<columnas; j++) {
  75. gotoxy(x + j, y + i);
  76. cout << " ";
  77. }
  78. }
  79.  
  80. }
  81. void mover(char direccion) {
  82. switch (toupper(direccion)) {
  83. case IZQUIERDA: if (x > 0) x--; break;
  84. case DERECHA: if (x + 5 < 120)x++; break;
  85. }
  86. }
  87. };
  88. struct Enemigo
  89. {
  90. short x, y, pasos;
  91. short dx, dy, retraso;
  92. char enemy[2][5] = { { '!','(',' ',')','!' },
  93. { ' ',' ','s',' ',' ' } };
  94. Enemigo(short _x = 10, short _y = 10) {
  95. x = _x;
  96. y = _y;
  97. dx = 1;
  98. dy = 1;
  99. retraso = 0;
  100. }
  101. int X() { return x; }
  102. int Y() { return y; }
  103. void animar() {
  104. if (retraso == 100) {
  105. borrar();
  106. mover();
  107. pintar();
  108. retraso = 0;
  109. }
  110. retraso++;
  111. }
  112. void pintar() {
  113. cambiarColorCaracter(AZUL);
  114. for (int i = 0; i<2; i++) {
  115. for (int j = 0; j<5; j++) {
  116. gotoxy(x + j, y + i);
  117. cout << enemy[i][j];
  118. }
  119. }
  120. }
  121. void borrar() {
  122. for (int i = 0; i <2; i++) {
  123. for (int j = 0; j <5; j++) {
  124. gotoxy(x + j, y + i);
  125. cout << " ";
  126. }
  127. }
  128. }
  129. void mover() {
  130. if (x == 2 || x + 2 == 100) dx *= -1;
  131. if (y == 2 || y + 4 == 20) dy *= -1;
  132. x += dx;
  133. y += dy;
  134. }
  135.  
  136.  
  137. };
  138. struct bala {
  139. int x, y, dy; int daño = 1;
  140. bala(int _x, int _y,int _dy) {
  141. x = _x;
  142. y = _y;
  143. dy = _dy;
  144. }
  145. int X() { return x; }
  146. int Y() { return y; }
  147.  
  148. ~bala() {
  149. Console::SetCursorPosition(x, y);
  150. cout << " ";
  151. }
  152. int lento = 0;
  153. void animar() {
  154. if (lento == 80) {
  155. mover();
  156. fuera();
  157. lento = 0;
  158. }
  159. lento++;
  160. }
  161. void mover() {
  162. gotoxy(x, y); printf(" ");
  163. y += dy;;
  164. gotoxy(x, y); printf("|");
  165. }
  166. bool bala::fuera() {
  167. if (y == 4) return true;
  168. return false;
  169. }
  170.  
  171. /* void colision(Enemigo *E) {
  172. for (int i = 0; i < 6; i++) {
  173. if (x >= E[i].X() && x < E[i].X() + 6 && y >= E[i].Y() && y <= E[i].Y() + 2) {
  174. E[i].borrar();
  175. }
  176. }
  177. }*/
  178. };
  179. struct EnemigoMedio
  180. {
  181. short x, y, pasos;
  182. short dx, dy, retraso;
  183. char medio[2][5] = { { 'Z','*','.','*','Z' },
  184. { ' ','I','!','I',' ' } };
  185.  
  186. EnemigoMedio(short _x = 2, short _y = 2) {
  187. x = rand()%18+31;
  188. y = rand()%6+9;
  189. dx = 1;
  190. dy = 1;
  191. retraso = 0;
  192. }
  193.  
  194. void animar() {
  195. if (retraso == 150) {
  196. borrar();
  197. mover();
  198. pintar();
  199. retraso = 0;
  200. }
  201. retraso++;
  202. }
  203. void pintar() {
  204. cambiarColorCaracter(ROJO);
  205. for (int i = 0; i<2; i++) {
  206. for (int j = 0; j<5; j++) {
  207. gotoxy(x + j, y + i);
  208. cout << medio[i][j];
  209. }
  210. }
  211. }
  212. void borrar() {
  213. for (int i = 0; i <2; i++) {
  214. for (int j = 0; j <5; j++) {
  215. gotoxy(x + j, y + i);
  216. cout << " ";
  217. }
  218. }
  219. }
  220.  
  221. void mover() {
  222. if (x == 30 || x + 4 == 70) dx *= -1;
  223. x += dx;
  224. if (y< 9 || y + 3 > 15) dy *= -1;
  225. y += dy;
  226. }
  227. };
  228. struct Jefe
  229. {
  230. short x, y, pasos;
  231. short dx, dy, retraso,vidas=2;
  232. char enemy[4][7] = { { 'I','|','I','|','I','|','I' },
  233. { ' ','X','.','X','.','X',' ' },
  234. { ' ',' ','<','*','>',' ',' ' },
  235. { ' ',' ',' ','W',' ',' ',' ' } };
  236. Jefe(short _x = 2, short _y = 2) {
  237. x = _x;
  238. y = _y;
  239. dx = 1;
  240. dy = 0;
  241. retraso = 0;
  242. }
  243. void animar() {
  244. if (retraso == 150) {
  245. borrar();
  246. mover();
  247. pintar();
  248. retraso = 0;
  249. }
  250. retraso++;
  251. }
  252. void pintar() {
  253. if (vidas == 2) {
  254. cambiarColorCaracter(AMARILLO);
  255.  
  256. }
  257. else
  258. {
  259. Console::ForegroundColor = ConsoleColor::DarkMagenta;
  260. }
  261. for (int i = 0; i<4; i++) {
  262. for (int j = 0; j<7; j++) {
  263. gotoxy(x + j, y + i);
  264. cout << enemy[i][j];
  265. }
  266. }
  267. }
  268. void borrar() {
  269. for (int i = 0; i <4; i++) {
  270. for (int j = 0; j <7; j++) {
  271. gotoxy(x + j, y + i);
  272. cout << " ";
  273. }
  274. }
  275. }
  276.  
  277. void mover() {
  278. if (rand() % 100 == 0) {
  279. dx = 0; dy = 1;
  280. }
  281. if (x+dx == 0 || x + 7 + dx == 80) {
  282. dx *= -1;
  283. }
  284. x += dx;
  285.  
  286. if (y + dy <= 2 || y + 3 + dy>= 25) {
  287. if(dy==1)
  288. dy *= -1;
  289. else
  290. {
  291. dx = dy;
  292. dy = 0;
  293. }
  294. }
  295. y += dy;
  296. }
  297. };
  298.  
  299. bool colision(Personaje pj, bala *B) {
  300. if (pj.x <= B->x&&B->x < pj.x + 5 && pj.y <= B->y&&B->y < pj.y + 1) return true;
  301. else return false;
  302. }
  303. bool colision(Enemigo *pj, bala *B) {
  304. if (pj->x <= B->x&&B->x < pj->x + 5 && pj->y <= B->y&&B->y < pj->y + 1) return true;
  305. else return false;
  306. }
  307. bool colision(Personaje pj, Enemigo *B) {
  308. if ((pj.x <= B->x && B-> x < pj.x + 5 && pj.y <= B->y && B-> y < pj.y + 1)||
  309. (pj.x <= B->x+5 && B->x+5 < pj.x + 5 && pj.y <= B->y&&B->y < pj.y + 1) ||
  310. (pj.x <= B->x && B->x < pj.x + 5 && pj.y <= B->y+1&&B->y+1 < pj.y + 1) ||
  311. (pj.x <= B->x+5 && B->x+5< pj.x + 5 && pj.y <= B->y+1&&B->y+1 < pj.y + 1)
  312. ) return true;
  313. else return false;
  314. }
  315.  
  316. bool colision(EnemigoMedio *pj, bala *B) {
  317. if (pj->x <= B->x&&B->x < pj->x + 5 && pj->y <= B->y&&B->y < pj->y + 1) return true;
  318. else return false;
  319. }
  320. bool colision(Personaje pj, EnemigoMedio *B) {
  321. if ((pj.x <= B->x&&B->x < pj.x + 5 && pj.y <= B->y&&B->y < pj.y + 1) ||
  322. (pj.x <= B->x + 5 && B->x + 5 < pj.x + 5 && pj.y <= B->y&&B->y < pj.y + 1) ||
  323. (pj.x <= B->x&&B->x < pj.x + 5 && pj.y <= B->y + 1 && B->y + 1 < pj.y + 1) ||
  324. (pj.x <= B->x + 5 && B->x + 5< pj.x + 5 && pj.y <= B->y + 1 && B->y + 1 < pj.y + 1)
  325. ) return true;
  326. else return false;
  327. }
  328. bool colision(Jefe *pj, bala *B) {
  329. if (pj->x <= B->x&&B->x < pj->x + 7 && pj->y <= B->y&&B->y < pj->y + 3) return true;
  330. else return false;
  331. }
  332. bool colision(Personaje pj, Jefe *B) {
  333. if ((pj.x <= B->x && B->x < pj.x + 7 && pj.y <= B->y && B->y < pj.y + 3) ||
  334. (pj.x <= B->x + 7 && B->x + 7 < pj.x + 7 && pj.y <= B->y && B->y < pj.y + 3) ||
  335. (pj.x <= B->x && B->x < pj.x + 7 && pj.y <= B->y + 3 && B->y + 3 < pj.y + 3) ||
  336. (pj.x <= B->x + 7 && B->x + 7< pj.x + 7 && pj.y <= B->y + 3 && B->y + 3 < pj.y + 3)
  337. ) return true;
  338. else return false;
  339. }
  340.  
  341. void nivel1(){
  342. Console::ForegroundColor = ConsoleColor::Green;
  343.  
  344. cout << " ********** "; cout << endl;
  345. cout << " ********** "; cout << endl;
  346. cout << " **** "; cout << endl;
  347. cout << " **** "; cout << endl;
  348. cout << " **** "; cout << endl;
  349. cout << " **** "; cout << endl;
  350. cout << " **** "; cout << endl;
  351. cout << " **** "; cout << endl;
  352. cout << " ********** "; cout << endl;
  353. cout << " ********** "; cout << endl;
  354. cout << " "; cout << endl;
  355.  
  356.  
  357. }
  358. void nivel2() {
  359. Console::ForegroundColor = ConsoleColor::DarkCyan;
  360.  
  361. cout << " **************** "; cout << endl;
  362. cout << " **************** "; cout << endl;
  363. cout << " **** **** "; cout << endl;
  364. cout << " **** **** "; cout << endl;
  365. cout << " **** **** "; cout << endl;
  366. cout << " **** **** "; cout << endl;
  367. cout << " **** **** "; cout << endl;
  368. cout << " **** **** "; cout << endl;
  369. cout << " **************** "; cout << endl;
  370. cout << " **************** "; cout << endl;
  371. cout << " "; cout << endl;
  372.  
  373. }
  374. void nivel3() {
  375. Console::ForegroundColor = ConsoleColor::Magenta;
  376.  
  377. cout << " ********************** "; cout << endl;
  378. cout << " ********************** "; cout << endl;
  379. cout << " **** **** **** "; cout << endl;
  380. cout << " **** **** **** "; cout << endl;
  381. cout << " **** **** **** "; cout << endl;
  382. cout << " **** **** **** "; cout << endl;
  383. cout << " **** **** **** "; cout << endl;
  384. cout << " **** **** **** "; cout << endl;
  385. cout << " ********************** "; cout << endl;
  386. cout << " ********************** "; cout << endl;
  387. cout << " "; cout << endl;
  388. }
  389. void nivel4() {
  390. Console::ForegroundColor = ConsoleColor::Yellow;
  391.  
  392. cout << " ************* **** **** "; cout << endl;
  393. cout << " ************* **** **** "; cout << endl;
  394. cout << " **** **** **** "; cout << endl;
  395. cout << " **** **** **** "; cout << endl;
  396. cout << " **** **** **** "; cout << endl;
  397. cout << " **** **** **** "; cout << endl;
  398. cout << " **** ******** "; cout << endl;
  399. cout << " **** ****** "; cout << endl;
  400. cout << " ************* **** "; cout << endl;
  401. cout << " ************* ** "; cout << endl;
  402. }
  403.  
  404. void jugar() {
  405. //int minutos = 0, segundos = 0;
  406.  
  407. Personaje P;
  408. P.pintar();
  409. srand(time(NULL));
  410. vector<bala*>B;
  411. clock_t ini = clock();
  412. //Enemigo *Enemy1 = new Enemigo[6];
  413. //EnemigoMedio *Enemy2 = new EnemigoMedio[5];
  414. int nivel = 1;
  415. int cooldown = 0;
  416. vector<Enemigo*>E;
  417. vector<EnemigoMedio*>E1;
  418. vector<Jefe*>Jfe;
  419. for (short i = 0; i < 4*nivel; i++) {
  420. int x1 = ALEATORIO(5, 20);
  421. int y2 = ALEATORIO(5, 15);
  422. E.push_back(new Enemigo(x1, y2));
  423. }
  424. for (short i = 0; i < 5* nivel; i++) {
  425. int x1 = ALEATORIO(5, 50);
  426. int y2 = ALEATORIO(5, 15);
  427. E1.push_back(new EnemigoMedio(x1, y2));
  428. }
  429. for (short i = 0; i < nivel; i++) {
  430. int x1 = ALEATORIO(60, 75);
  431. int y2 = ALEATORIO(5, 15);
  432. Jfe.push_back(new Jefe(x1, y2));
  433. }
  434.  
  435. bool continuar = false;
  436. int puntos = 0;
  437. while (!continuar) {
  438. Console::ForegroundColor = ConsoleColor::White;
  439. gotoxy(4, 2); cout << "Puntos : " << puntos;
  440. gotoxy(4, 3); cout << "tiempo : \b\b\b\b " << 110 - ((clock() - ini) / CLOCKS_PER_SEC);
  441. gotoxy(4, 4); cout << "Vidas : \b\b\b\b "; for (int i = 0; i < P.vidas; i++) printf("%c", 3);
  442. if (kbhit()) {
  443. char tecla = getch();
  444. P.borrar();
  445. P.mover(tecla);
  446. P.pintar();
  447.  
  448.  
  449. if (tecla == 's'&&cooldown == 0) {
  450. cooldown = 300;
  451. B.push_back(new bala(P.X() + 2, P.Y() - 1, -1));
  452. }
  453. }
  454. if (cooldown > 0)cooldown--;
  455.  
  456.  
  457. for (short i = 0; i < B.size(); ++i) {
  458.  
  459. Console::ForegroundColor = ConsoleColor::White;
  460. B[i]->animar();
  461.  
  462. if (B[i]->y == 0 || B[i]->y == 29) {
  463. delete B[i];
  464. B.erase(B.begin() + i);
  465. --i;
  466. }
  467.  
  468.  
  469. if (i >= 0 && colision(P, B.at(i))) {
  470. P.vidas--;
  471. delete B.at(i);
  472. B.erase(B.begin() + i);
  473. --i;
  474. }
  475. //colision bala enemigo
  476. for (int j = 0; j < E.size(); j++)
  477. {
  478. if (i >= 0 && j >= 0 && colision(E.at(j), B.at(i))) {
  479. E.at(j)->borrar();
  480. puntos += 100;
  481. delete E.at(j);
  482. E.erase(E.begin() + j);
  483. --j;
  484. delete B.at(i);
  485. B.erase(B.begin() + i);
  486. --i;
  487. }
  488. }
  489. for (int j = 0; j < E1.size(); j++)
  490. {
  491. if (i >= 0 && j >= 0 && colision(E1.at(j), B.at(i))) {
  492. E1.at(j)->borrar();
  493. puntos += 160;
  494. delete E1.at(j);
  495. E1.erase(E1.begin() + j);
  496. --j;
  497. delete B.at(i);
  498. B.erase(B.begin() + i);
  499. --i;
  500. }
  501. }
  502. for (int j = 0; j < Jfe.size(); j++)
  503. {
  504. if (i >= 0 && j >= 0 && colision(Jfe.at(j), B.at(i))) {
  505. Jfe.at(j)->vidas--;
  506. if (Jfe.at(j)->vidas == 0) {
  507. Jfe.at(j)->borrar();
  508. puntos += 400;
  509. delete Jfe.at(j);
  510. Jfe.erase(Jfe.begin() + j);
  511. --j;
  512. }
  513. delete B.at(i);
  514. B.erase(B.begin() + i);
  515. --i;
  516. }
  517. }
  518.  
  519. }
  520. for (int i = 0; i < E.size(); i++) {
  521. if (rand() % 100 == 5 && E.at(i)->x == P.x) {
  522. B.push_back(new bala(E.at(i)->x + 2, E.at(i)->Y() + 4, 1));
  523. }
  524. E.at(i)->animar();
  525. }
  526. for (int i = 0; i < E1.size(); i++) {
  527. if (rand() % 100 == 5 && E1.at(i)->x == P.x) {
  528. B.push_back(new bala(E1.at(i)->x + 2, E1.at(i)->y + 4, 1));
  529. }
  530. E1.at(i)->animar();
  531. }
  532. for (int i = 0; i < Jfe.size(); i++) {
  533. if (rand() % 100 == 5 && Jfe.at(i)->x == P.x) {
  534. B.push_back(new bala(Jfe.at(i)->x + 2, Jfe.at(i)->y + 4, 1));
  535. B.at(B.size() - 1)->daño = 2;
  536. }
  537. Jfe.at(i)->animar();
  538. }
  539.  
  540. if (puntos > 8500 ||( E.size() == 0 && E1.size() == 0 && Jfe.size()==0)) {
  541. puntos = 0; nivel++;
  542. for (short i = 0; i < 5* nivel; i++) {
  543. int x1 = ALEATORIO(5, 20);
  544. int y2 = ALEATORIO(5, 15);
  545. E.push_back(new Enemigo(x1, y2));
  546. }
  547. for (short i = 0; i < 6 * nivel; i++) {
  548. int x1 = ALEATORIO(5, 50);
  549. int y2 = ALEATORIO(5, 15);
  550. E1.push_back(new EnemigoMedio(x1, y2));
  551. }
  552. for (short i = 0; i < nivel; i++) {
  553. int x1 = ALEATORIO(60, 75);
  554. int y2 = ALEATORIO(5, 15);
  555. Jfe.push_back(new Jefe(x1, y2));
  556. }
  557. ini = clock();
  558.  
  559. system("cls");
  560. switch (nivel)
  561. {
  562. case 2:nivel2();_getch();
  563. system("cls"); break;
  564. case 3:nivel3();_getch();
  565. system("cls");break;
  566. case 4:nivel4();_getch();
  567. system("cls");break;
  568. default:
  569. break;
  570. }
  571. if (nivel > 4) {
  572. system("cls");
  573. cout << "**** **** ************* **** **** **** ********** *************** " << endl;
  574. cout << " **** **** ************* **** **** *** ***** ***** *************** " << endl;
  575. cout << " **** **** **** **** **** **** ** **** **** ***** " << endl;
  576. cout << " ******* **** **** **** **** * **** **** ***** " << endl;
  577. cout << " ***** **** **** **** **** ****** ***** *************** " << endl;
  578. cout << " *** **** **** **** **** ************* *************** " << endl;
  579. cout << " *** **** **** **** **** **** **** ***** " << endl;
  580. cout << " *** **** **** **** **** **** **** ***** " << endl;
  581. cout << " *** ************* ************* **** **** *************** " << endl;
  582. cout << " *** ************* ************* **** **** *************** " << endl;
  583.  
  584.  
  585. cout << endl << endl;
  586.  
  587. cout << " **** **** ************* ***** **** ***** **** *************** ********** " << endl;
  588. cout << " **** **** ************* ****** **** ****** **** *************** ***** ***** " << endl;
  589. cout << " **** **** **** ******* **** ******* **** ***** **** **** " << endl;
  590. cout << " **** **** **** **** *** **** **** *** **** ***** **** **** " << endl;
  591. cout << " **** **** **** **** *** **** **** *** **** *************** ****** ***** " << endl;
  592. cout << " **** * **** **** **** *** **** **** *** **** *************** ************* " << endl;
  593. cout << " **** *** **** **** **** ******* **** ******* ***** **** **** " << endl;
  594. cout << " **** ***** **** **** **** ****** **** ****** ***** **** **** " << endl;
  595. cout << " ************* ************* **** ***** **** ***** *************** **** **** " << endl;
  596. cout << " *********** ************* **** **** **** **** *************** **** **** " << endl;
  597.  
  598. cout << endl << endl;
  599. _getch();
  600. return;
  601. //winner();
  602. }
  603. }
  604.  
  605.  
  606.  
  607. if (P.vidas <= 0 || 110 - ((clock() - ini) / CLOCKS_PER_SEC) < 0) {
  608. system("cls");
  609. cout << "************ ** **** **** *************** " << endl;
  610. cout << "************ **** ***** ***** *************** " << endl;
  611. cout << "*** *** ****** ****** ****** ***** " << endl;
  612. cout << "*** *** * * ******* ******* ***** " << endl;
  613. cout << "*** ** ** ***************** *************** " << endl;
  614. cout << "*** ************ ***** ***** ***** *************** " << endl;
  615. cout << "*** ***** ************** **** *** **** ***** " << endl;
  616. cout << "*** *** **** **** **** * **** ***** " << endl;
  617. cout << "************ **** **** **** **** *************** " << endl;
  618. cout << "************ **** **** **** **** *************** " << endl;
  619. cout << endl << endl;
  620. cout << "************* **** **** *************** ********** " << endl;
  621. cout << "************* **** **** *************** ***** ***** " << endl;
  622. cout << "**** **** **** **** ***** **** **** " << endl;
  623. cout << "**** **** **** **** ***** **** **** " << endl;
  624. cout << "**** **** **** **** *************** ****** ***** " << endl;
  625. cout << "**** **** **** **** *************** ************* " << endl;
  626. cout << "**** **** ******** ***** **** **** " << endl;
  627. cout << "**** **** ****** ***** **** **** " << endl;
  628. cout << "************* **** *************** **** **** " << endl;
  629. cout << "************* ** *************** **** **** " << endl;
  630.  
  631. cout << endl << endl;
  632. _getch();
  633. return;
  634. }
  635. /*
  636. /*for (short i = B.size() - 1; i >= 0; --i) {
  637. bala* balaNave = B[i];
  638. balaNave->mover();
  639. if (balaNave->fuera()) {
  640. delete balaNave;
  641. B.erase(B.begin() + i);
  642.  
  643. }
  644. Sleep(30);
  645. }*/
  646.  
  647. }
  648. //delete[] Enemy1;
  649.  
  650. }
  651.  
  652. int main(void) {
  653.  
  654. Console::CursorVisible = false;
  655. nivel1();
  656. _getch();
  657. system("cls");
  658. jugar();
  659. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement