Compare commits
4 Commits
f5b2925bdf
...
f0daf29917
Author | SHA1 | Date |
---|---|---|
|
f0daf29917 | |
|
5855b37c6e | |
|
b7ad0fbb6c | |
|
1673e995a6 |
|
@ -1,4 +1,5 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "intro.h"
|
#include "intro.h"
|
||||||
#include "title.h"
|
#include "title.h"
|
||||||
|
#include <cstdlib>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <thread>
|
||||||
|
#include <cstring>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
class Print{
|
class Print{
|
||||||
|
@ -10,7 +12,8 @@ class Print{
|
||||||
~Print(){
|
~Print(){
|
||||||
|
|
||||||
};
|
};
|
||||||
void printl(string text);
|
static void printl(string text);
|
||||||
void println(string text);
|
static void println(string text);
|
||||||
|
static void type(string text);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,6 @@ using namespace std;
|
||||||
|
|
||||||
class Sleep{
|
class Sleep{
|
||||||
public:
|
public:
|
||||||
void delay(int milliseconds);
|
static void delay(int milliseconds);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "include/main.h"
|
#include "include/main.h"
|
||||||
|
|
||||||
int main (){
|
int main (){
|
||||||
|
system("clear");
|
||||||
Title title;
|
Title title;
|
||||||
title.mainTitle();
|
title.mainTitle();
|
||||||
Intro intro;
|
Intro intro;
|
||||||
|
|
|
@ -1,9 +1,26 @@
|
||||||
#include "include/print.h"
|
#include "include/print.h"
|
||||||
|
|
||||||
void Print::printl(string text){
|
void Print::printl(string text){
|
||||||
cout << text;
|
cout << text << flush;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Print::println(string text){
|
void Print::println(string text){
|
||||||
cout << text << endl;
|
cout << text << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Print::type(string text){
|
||||||
|
int a = text.size();
|
||||||
|
char* charArray = new char[a+1];
|
||||||
|
strcpy(charArray, text.c_str());
|
||||||
|
int i = 0;
|
||||||
|
int time = 300;
|
||||||
|
|
||||||
|
while(i < a+1){
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(time));
|
||||||
|
cout << charArray[i] << flush;
|
||||||
|
i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
cout << endl;
|
||||||
|
delete[] charArray;
|
||||||
|
}
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
#include "include/title.h"
|
#include "include/title.h"
|
||||||
#include "include/print.h"
|
#include "include/print.h"
|
||||||
|
#include "include/sleep.h"
|
||||||
|
|
||||||
void Title::mainTitle(){
|
void Title::mainTitle(){
|
||||||
int s = 2000;
|
int s = 900;
|
||||||
Print print;
|
Print::println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
|
||||||
print.println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
|
Sleep::delay(s);
|
||||||
usleep(s);
|
Print::println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
|
||||||
print.println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
|
Sleep::delay(s);
|
||||||
usleep(s);
|
Print::println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
|
||||||
print.println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
|
Sleep::delay(s);
|
||||||
usleep(s);
|
Print::println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
|
||||||
print.println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
|
Sleep::delay(s);
|
||||||
usleep(s);
|
Print::println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
|
||||||
print.println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
|
Sleep::delay(s);
|
||||||
usleep(s);
|
Print::println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||||
print.println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue