Untitled
unknown
c_cpp
2 years ago
3.3 kB
9
Indexable
//Game-site //KOSHELEV #include<stdio.h> #include<iostream> #include<cmath> #include<stdlib.h> #include<string> #include<windows.h> #include<conio.h> using namespace std; int main() // главная функция для игры { int biy = 0; cout << "Welcome!\n"; Sleep(1000); //ZzZzZz biy = 1; cout << "Enter your Nickname\n"; if (biy == 1) { string Nickname; // вводим никнейм для иг909рока cin >> Nickname; biy = 0; } Sleep(1000); //ZzZzZz cout << "Thank you!\n"; Sleep(1000); //ZzZzZz system("cls"); for (int i = 0; i < 10; i++) { cout << "Interface loading"; cout << "."; Sleep(500); cout << "."; Sleep(500); cout << "."; Sleep(500); system("cls"); } system("cls"); //НАЧАЛО ИГРЫ for (int i = 0; i < 50; i++) { cout << "----"; Sleep(10); } cout << "\n"; cout << "controls: wasd\n"; for (int i = 0; i < 50; i++) { cout << "----"; Sleep(10); } cout << "\n"; cout << "\n"; cout << "\n"; Sleep(2000); system("cls"); cout << "Quest: Find the key"; //поле cout << "************************************************************************\n"; cout << "* | | *\n"; cout << "*______________________________________| VALERIA'S ROOM |__________*\n"; cout << "* *\n"; cout << "* YOU *\n"; cout << "*______________________________________ __________*\n"; cout << "* | BOSS'S ROOM | *\n"; cout << "* | | *\n"; cout << "************************************************************************\n"; cout << "\n"; cout << "\n"; int spaces = 3;; system("cls"); int t = 1; int spaces2 = 64; while (true) { char control; cin >> control; if (control == 'd' and t==1) { cout << "************************************************************************\n"; cout << "* | | *\n"; cout << "*______________________________________| VALERIA'S ROOM |__________*\n"; cout << "* *\n"; // начало системы передвижения cout << "*"; spaces++; spaces2 -= 1; for (int i = 0; i < spaces; i++) { cout << " "; } cout << "YOU"; for (int i = 0; i < spaces2; i++) { cout << " "; } cout << "*\n"; } cout << "*______________________________________ __________*\n"; cout << "* | BOSS'S ROOM | *\n"; cout << "* | | *\n"; cout << "************************************************************************\n"; if (spaces == 40) { t = 0; } } }
Editor is loading...