Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- using namespace System;
- enum Color { NEGRO, ROJO, AZUL, BLANCO, VERDE, AMARILLO, MORADO };
- void CambiarColorLetra(Color c) {
- switch (c) {
- case NEGRO: Console::ForegroundColor = ConsoleColor::Black; break;
- case ROJO: Console::ForegroundColor = ConsoleColor::Red; break;
- case AZUL: Console::ForegroundColor = ConsoleColor::Blue; break;
- case BLANCO: Console::ForegroundColor = ConsoleColor::White; break;
- case VERDE: Console::ForegroundColor = ConsoleColor::Green; break;
- case AMARILLO: Console::ForegroundColor = ConsoleColor::Yellow; break;
- case MORADO: Console::ForegroundColor = ConsoleColor::Magenta; break;
- }
- }
- void CambiarColorFondo(Color c) {
- switch (c)
- {
- case NEGRO: Console::BackgroundColor = ConsoleColor::Black; break;
- case ROJO: Console::BackgroundColor = ConsoleColor::Red; break;
- case AZUL: Console::BackgroundColor = ConsoleColor::Blue; break;
- case BLANCO: Console::BackgroundColor = ConsoleColor::White; break;
- case VERDE: Console::BackgroundColor = ConsoleColor::Green; break;
- case AMARILLO: Console::BackgroundColor = ConsoleColor::Yellow; break;
- case MORADO: Console::BackgroundColor = ConsoleColor::Magenta; break;
- }
- }
- void nivel2() {
- cout << "********************************************************************************************" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** || || || || || ||||||||||| || **" << endl;
- cout << "** ||| || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || ||||||||||| || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || ||| || || || || || **" << endl;
- cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** * * * * **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** *** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** ************* **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "********************************************************************************************" << endl;
- }
- void nivel3() {
- cout << "********************************************************************************************" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** || || || || || ||||||||||| || **" << endl;
- cout << "** ||| || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || ||||||||||| || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || ||| || || || || || **" << endl;
- cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** ******* **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** *** **" << endl;
- cout << "** **** **" << endl;
- cout << "** *** **" << endl;
- cout << "** *** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ** ** **" << endl;
- cout << "** ******* **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "********************************************************************************************" << endl;
- }
- void nivel4() {
- cout << "********************************************************************************************" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** || || || || || ||||||||||| || **" << endl;
- cout << "** ||| || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || ||||||||||| || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || || || || || || || || **" << endl;
- cout << "** || ||| || || || || || **" << endl;
- cout << "** || || || |||| ||||||||||| ||||||||||| **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** ***** **" << endl;
- cout << "** ******** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** *** ** **" << endl;
- cout << "** ***************** **" << endl;
- cout << "** *************** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** ** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "********************************************************************************************" << endl;
- }
- void perdiste() {
- cout << "**************************************************************************************" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** XX XX XXXXXXXXXXXXX XX XX **" << endl;
- cout << "** X X XX XX XX XX **" << endl;
- cout << "** X X XX XX XX XX **" << endl;
- cout << "** X X XX XX XX XX **" << endl;
- cout << "** X X XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XXXXXXXXXXXXX XXXXXXXXXXXXXXX **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** XX XXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX **" << endl;
- cout << "** XX XX XX XX XXXXXXXXXXXXXX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XXXXXXXXXXXXXX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XX XX XX XX XX **" << endl;
- cout << "** XXX XX XX XX XX **" << endl;
- cout << "** XXXX XX XX XX XX **" << endl;
- cout << "** XXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXX XX **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "** **" << endl;
- cout << "**************************************************************************************" << endl;
- }
- int main() {
- nivel2();
- nivel3();
- nivel4();
- perdiste();
- system("pause>0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement