Working on the delay and fixing issues
This commit is contained in:
parent
f5b2925bdf
commit
1673e995a6
|
@ -3,6 +3,6 @@ using namespace std;
|
|||
|
||||
class Sleep{
|
||||
public:
|
||||
void delay(int milliseconds);
|
||||
static void delay(int milliseconds);
|
||||
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "include/print.h"
|
||||
|
||||
void Print::printl(string text){
|
||||
cout << text;
|
||||
cout << text << flush;
|
||||
}
|
||||
|
||||
void Print::println(string text){
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
#include "include/title.h"
|
||||
#include "include/print.h"
|
||||
|
||||
#include "include/sleep.h"
|
||||
|
||||
void Title::mainTitle(){
|
||||
int s = 2000;
|
||||
int s = 900;
|
||||
Print print;
|
||||
print.println("███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗");
|
||||
usleep(s);
|
||||
Sleep::delay(s);
|
||||
print.println("██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝");
|
||||
usleep(s);
|
||||
Sleep::delay(s);
|
||||
print.println("███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ ");
|
||||
usleep(s);
|
||||
Sleep::delay(s);
|
||||
print.println("╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ ");
|
||||
usleep(s);
|
||||
Sleep::delay(s);
|
||||
print.println("███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗");
|
||||
usleep(s);
|
||||
Sleep::delay(s);
|
||||
print.println("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue