Fixed the time of the typing.
This commit is contained in:
parent
331a0812bc
commit
fc4a95db3d
|
@ -2,10 +2,8 @@
|
||||||
|
|
||||||
int main (){
|
int main (){
|
||||||
system("clear");
|
system("clear");
|
||||||
//Title title;
|
|
||||||
Title::mainTitle();
|
Title::mainTitle();
|
||||||
//Intro intro;
|
Intro::mainIntro();
|
||||||
//Intro::mainIntro();
|
|
||||||
Game game;
|
Game game;
|
||||||
game.gameloop();
|
game.gameloop();
|
||||||
cin.get();
|
cin.get();
|
||||||
|
|
|
@ -13,7 +13,7 @@ void Print::type(string text){
|
||||||
char* charArray = new char[a+1];
|
char* charArray = new char[a+1];
|
||||||
strcpy(charArray, text.c_str());
|
strcpy(charArray, text.c_str());
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int time = 250;
|
int time = 150;
|
||||||
|
|
||||||
while(i < a+1){
|
while(i < a+1){
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(time));
|
std::this_thread::sleep_for(std::chrono::milliseconds(time));
|
||||||
|
|
Loading…
Reference in New Issue