Advertisement
sebasvp2005

Untitled

Apr 24th, 2024
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.39 KB | None | 0 0
  1. #include "pch.h"
  2. #include<iostream>
  3. #include<conio.h>
  4. #include <vector>
  5. #include "Animation.h"
  6.  
  7. using namespace std;
  8. using namespace System;
  9.  
  10.  
  11. void consola() {
  12.     Console::SetWindowSize(190, 50);
  13.     Console::CursorVisible = false;
  14. }
  15. void creditos() {
  16.     system("cls");
  17.     cout << "--------------------------------------";
  18.     cout << "\n HUERTA " << endl;
  19.     cout << "ALBERCA " << endl;
  20.     cout << "ZEA " << endl;
  21.     cout << "----------------------------------------";
  22.     system("pause>0");
  23. }
  24. void instrucciones() {
  25.     system("cls");
  26.  
  27.  
  28.     cout << " - INSTRUCCIONES " << endl;
  29.     cout << "________________________________________________________________ ";
  30.     cout << "\n1. El jugador debera saltarse la linea de juego.             " << endl;
  31.     cout << "2. El ganador sera el que tenga mas puntos acumulados.         " << endl;
  32.     cout << "3. En cada turno se lanzaran cartas al azar para cada jugador. " << endl;
  33.     cout << "4. El jugador debe eliminar la carta del oponente.             " << endl;
  34.     cout << "________________________________________________________________ ";
  35.  
  36.  
  37.  
  38.     system("pause>0");
  39. }
  40.  
  41. void pantalla_carga() {
  42.     system("cls");
  43.     int a, j, k;
  44.     Console::ForegroundColor = ConsoleColor::Blue;
  45.     Console::SetCursorPosition(40, 15); cout << "                      ..                                                                                                                                     ";
  46.     Console::SetCursorPosition(40, 16); cout << "                     ....                                                                            ...                 ";
  47.     Console::SetCursorPosition(40, 17); cout << "                   ..    ..                    ...      ...     ...     ...                     ..        ..             ";
  48.     Console::SetCursorPosition(40, 18); cout << "                 ..        ..                 .            .. ..           ..                 ..            ..           ";
  49.     Console::SetCursorPosition(40, 19); cout << "               ..            ..              .              ...             ..                .             ..           ";
  50.     Console::SetCursorPosition(40, 20); cout << "             ..                ..           ..                               .                .             ..           ";
  51.     Console::SetCursorPosition(40, 21); cout << "           ..                    ..         ..                               .                ..            ..           ";
  52.     Console::SetCursorPosition(40, 22); cout << "          .                        .         .                              ..                ...          ..            ";
  53.     Console::SetCursorPosition(40, 23); cout << "        ..                          ..        .                            ..           .........          .........     ";
  54.     Console::SetCursorPosition(40, 24); cout << "       ..                             .        .                          ..          .                             ..   ";
  55.     Console::SetCursorPosition(40, 25); cout << "       .                              ..        ..                       .           ..                              ..  ";
  56.     Console::SetCursorPosition(40, 26); cout << "      ..                              ..          ..                   ..           ..                                .  ";
  57.     Console::SetCursorPosition(40, 27); cout << "       .                              ..            ..               ..              .                                .  ";
  58.     Console::SetCursorPosition(40, 28); cout << "       ..           ..  ..            .               ..           ..                .             ..  ..            ..  ";
  59.     Console::SetCursorPosition(40, 29); cout << "        ..         .... ....        ..                  ..       ..                   ..         ..........         ..   ";
  60.     Console::SetCursorPosition(40, 30); cout << "              ...  ..  ..  ...  .                         ..    ..                      .....   .  ..  ..  .. .....      ";
  61.     Console::SetCursorPosition(40, 31); cout << "                   ..   .                                  .....                                   .   ..                ";
  62.     Console::SetCursorPosition(40, 32); cout << "                 ....  ....                                  .                                   ...   ....              ";
  63.  
  64.  
  65.     Console::SetCursorPosition(95, 40); printf("C A R G A N D O");
  66.     for (a = 80; a < 123; a++) {
  67.         Console::SetCursorPosition(a, 43);
  68.         cout << char(177);
  69.         _sleep(2);
  70.     }
  71. }
  72.  
  73. void titulo() {
  74.     int opcion;
  75.     do
  76.     {
  77.         system("cls");
  78.         Console::ForegroundColor = ConsoleColor::White;
  79.         Console::SetCursorPosition(70, 13); std::cout << "   .d88888b.  888     888 8888888 d888888888P 888888888 ";
  80.         Console::SetCursorPosition(70, 14); std::cout << "  d88P' 'Y88b 888     888   888       888     88        ";
  81.         Console::SetCursorPosition(70, 15); std::cout << "  888     888 888     888   888       888     88        ";
  82.         Console::SetCursorPosition(70, 16); std::cout << "  888     888 888     888   888       888     8888888   ";
  83.         Console::SetCursorPosition(70, 17); std::cout << "  888     888 888     888   888       888     88        ";
  84.         Console::SetCursorPosition(70, 18); std::cout << "  888     888 888     888   888       888     88        ";
  85.         Console::SetCursorPosition(70, 19); std::cout << "  Y88b. .d88P Y88b. .d88P   888       888     88        ";
  86.         Console::SetCursorPosition(70, 20); std::cout << "   *Y88888P*   *Y88888P*  8888888     888     888888888 ";
  87.         Console::SetCursorPosition(70, 21); std::cout << " ______________________________________________________ ";
  88.         Console::SetCursorPosition(70, 22); std::cout << " \____________________________________________________/ ";
  89.  
  90.  
  91.  
  92.         Console::SetCursorPosition(70, 23); std::cout << " ------------------------------------------------------ ";
  93.         Console::SetCursorPosition(90, 24); std::cout << "[1] JUGAR ";
  94.         Console::SetCursorPosition(90, 25); std::cout << "[2] INSTRUCCIONES ";
  95.         Console::SetCursorPosition(90, 26); std::cout << "[3] CREDITOS ";
  96.         Console::SetCursorPosition(90, 27); std::cout << "[0] SALIR ";
  97.         Console::SetCursorPosition(90, 28); std::cout << "OPCION: ";
  98.         Console::SetCursorPosition(68, 30); std::cout << "| TRABAJO-PARCIAL-2024 : HUERTA, ALBERCA, ZEA- SECCION:W1SE | ";
  99.         Console::SetCursorPosition(98, 28);
  100.  
  101.         while (!(cin >> opcion)) {
  102.             Console::SetCursorPosition(90, 28); cout << "                                               ";
  103.             Console::SetCursorPosition(90, 28); cout << "Escoge una opcion valida: ";
  104.             cin.clear();
  105.             cin.ignore(22, '\n');
  106.         }
  107.  
  108.         cout << opcion << endl;
  109.         _getch();
  110.  
  111.         switch (opcion)
  112.         {
  113.         case 0:
  114.  
  115.             break;
  116.         case 1:
  117.             //juego
  118.             break;
  119.         case 2:
  120.             instrucciones();
  121.             break;
  122.         case 3:
  123.             creditos();
  124.             break;
  125.         }
  126.  
  127.     } while (!(opcion == 1 || opcion == 0));
  128.  
  129.  
  130.  
  131. }
  132.  
  133.  
  134.  
  135.  
  136. int main()
  137. {
  138.  
  139.     consola();
  140.  
  141.     ConsoleColor colors[] = { ConsoleColor::Red, ConsoleColor::Blue , ConsoleColor::Yellow};
  142.  
  143.     while (1) {
  144.         animate(animation, 3, 4,3, colors);
  145.     }
  146.  
  147.     _getch();
  148.     return 0;
  149. }
  150.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement