Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include<iostream>
- #include<conio.h>
- #include <vector>
- #include "Animation.h"
- using namespace std;
- using namespace System;
- void consola() {
- Console::SetWindowSize(190, 50);
- Console::CursorVisible = false;
- }
- void creditos() {
- system("cls");
- cout << "--------------------------------------";
- cout << "\n HUERTA " << endl;
- cout << "ALBERCA " << endl;
- cout << "ZEA " << endl;
- cout << "----------------------------------------";
- system("pause>0");
- }
- void instrucciones() {
- system("cls");
- cout << " - INSTRUCCIONES " << endl;
- cout << "________________________________________________________________ ";
- cout << "\n1. El jugador debera saltarse la linea de juego. " << endl;
- cout << "2. El ganador sera el que tenga mas puntos acumulados. " << endl;
- cout << "3. En cada turno se lanzaran cartas al azar para cada jugador. " << endl;
- cout << "4. El jugador debe eliminar la carta del oponente. " << endl;
- cout << "________________________________________________________________ ";
- system("pause>0");
- }
- void pantalla_carga() {
- system("cls");
- int a, j, k;
- Console::ForegroundColor = ConsoleColor::Blue;
- Console::SetCursorPosition(40, 15); cout << " .. ";
- Console::SetCursorPosition(40, 16); cout << " .... ... ";
- Console::SetCursorPosition(40, 17); cout << " .. .. ... ... ... ... .. .. ";
- Console::SetCursorPosition(40, 18); cout << " .. .. . .. .. .. .. .. ";
- Console::SetCursorPosition(40, 19); cout << " .. .. . ... .. . .. ";
- Console::SetCursorPosition(40, 20); cout << " .. .. .. . . .. ";
- Console::SetCursorPosition(40, 21); cout << " .. .. .. . .. .. ";
- Console::SetCursorPosition(40, 22); cout << " . . . .. ... .. ";
- Console::SetCursorPosition(40, 23); cout << " .. .. . .. ......... ......... ";
- Console::SetCursorPosition(40, 24); cout << " .. . . .. . .. ";
- Console::SetCursorPosition(40, 25); cout << " . .. .. . .. .. ";
- Console::SetCursorPosition(40, 26); cout << " .. .. .. .. .. . ";
- Console::SetCursorPosition(40, 27); cout << " . .. .. .. . . ";
- Console::SetCursorPosition(40, 28); cout << " .. .. .. . .. .. . .. .. .. ";
- Console::SetCursorPosition(40, 29); cout << " .. .... .... .. .. .. .. .......... .. ";
- Console::SetCursorPosition(40, 30); cout << " ... .. .. ... . .. .. ..... . .. .. .. ..... ";
- Console::SetCursorPosition(40, 31); cout << " .. . ..... . .. ";
- Console::SetCursorPosition(40, 32); cout << " .... .... . ... .... ";
- Console::SetCursorPosition(95, 40); printf("C A R G A N D O");
- for (a = 80; a < 123; a++) {
- Console::SetCursorPosition(a, 43);
- cout << char(177);
- _sleep(2);
- }
- }
- void titulo() {
- int opcion;
- do
- {
- system("cls");
- Console::ForegroundColor = ConsoleColor::White;
- Console::SetCursorPosition(70, 13); std::cout << " .d88888b. 888 888 8888888 d888888888P 888888888 ";
- Console::SetCursorPosition(70, 14); std::cout << " d88P' 'Y88b 888 888 888 888 88 ";
- Console::SetCursorPosition(70, 15); std::cout << " 888 888 888 888 888 888 88 ";
- Console::SetCursorPosition(70, 16); std::cout << " 888 888 888 888 888 888 8888888 ";
- Console::SetCursorPosition(70, 17); std::cout << " 888 888 888 888 888 888 88 ";
- Console::SetCursorPosition(70, 18); std::cout << " 888 888 888 888 888 888 88 ";
- Console::SetCursorPosition(70, 19); std::cout << " Y88b. .d88P Y88b. .d88P 888 888 88 ";
- Console::SetCursorPosition(70, 20); std::cout << " *Y88888P* *Y88888P* 8888888 888 888888888 ";
- Console::SetCursorPosition(70, 21); std::cout << " ______________________________________________________ ";
- Console::SetCursorPosition(70, 22); std::cout << " \____________________________________________________/ ";
- Console::SetCursorPosition(70, 23); std::cout << " ------------------------------------------------------ ";
- Console::SetCursorPosition(90, 24); std::cout << "[1] JUGAR ";
- Console::SetCursorPosition(90, 25); std::cout << "[2] INSTRUCCIONES ";
- Console::SetCursorPosition(90, 26); std::cout << "[3] CREDITOS ";
- Console::SetCursorPosition(90, 27); std::cout << "[0] SALIR ";
- Console::SetCursorPosition(90, 28); std::cout << "OPCION: ";
- Console::SetCursorPosition(68, 30); std::cout << "| TRABAJO-PARCIAL-2024 : HUERTA, ALBERCA, ZEA- SECCION:W1SE | ";
- Console::SetCursorPosition(98, 28);
- while (!(cin >> opcion)) {
- Console::SetCursorPosition(90, 28); cout << " ";
- Console::SetCursorPosition(90, 28); cout << "Escoge una opcion valida: ";
- cin.clear();
- cin.ignore(22, '\n');
- }
- cout << opcion << endl;
- _getch();
- switch (opcion)
- {
- case 0:
- break;
- case 1:
- //juego
- break;
- case 2:
- instrucciones();
- break;
- case 3:
- creditos();
- break;
- }
- } while (!(opcion == 1 || opcion == 0));
- }
- int main()
- {
- consola();
- ConsoleColor colors[] = { ConsoleColor::Red, ConsoleColor::Blue , ConsoleColor::Yellow};
- while (1) {
- animate(animation, 3, 4,3, colors);
- }
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement