Working on the delay and fixing issues
This commit is contained in:
1 parent
f5b2925bdf
commit
1673e995a6
3 files changed
+9
-9
No files matched your search
+1
-1
@@ -3,6 +3,6 @@ using namespace std;
|
||||
|
||||
class Sleep{
|
||||
public:
|
||||
void delay(int milliseconds);
|
||||
static void delay(int milliseconds);
|
||||
|
||||
};
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include "include/print.h"
|
||||
|
||||
void Print::printl(string text){
|
||||
cout << text;
|
||||
cout << text << flush;
|
||||
}
|
||||
|
||||
void Print::println(string text){
|
||||
|
||||
+7
-7
@@ -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("╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user