1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
#include "common.hpp"
char (* Map)[40][40];
char map1 [40][40] =
{"##################",
"# # #",
"# # !",
"# # # #####",
"# # # # #",
"#@ # # #",
"#### # #",
"# ####### #",
"# #",
"##################"};
char map2[40][40] =
{"##################",
"@ # + !",
"# # ######",
"# # #######",
"# # ########",
"#**# #########",
"# # ##########",
"# # ###########",
"# ############",
"##################"};
char map3[40][40] =
{"#####################################",
"# #",
"# #",
"# #",
"# S #",
"# #",
"# #",
"# #",
"###### S #",
"# #",
"# # #",
"# # #",
" @ # #",
"# # #",
"#####################################"};
void play()
{
ClearScreen();
cout << "--------TUTORIAL 1";
cout << "\n\n\tWelcome to CliX :)";
cout << "\n\tYou should use this room to practice moving around.";
cout << "\n\tOnce you're confident with the controls head for the exit (!)";
cout << "\n\tBye for now!";
cin.get();
while (running and stage == 1)
{
Map = &map1;
ClearScreen();
for (int i = 0; i < 10; i++)
{
cout << (*Map)[i] << "\n";
}
cout << "HP: " << HP << "/" << MaxHP;
controls();
}
ClearScreen();
cout << "--------TUTORIAL 2";
cout << "\n\n\tBeware of the traps '*' and collect potions '+' to heal up";
cin.get();
while (running and stage == 2)
{
Map = &map2;
ClearScreen();
for (int i = 0; i < 10; i++)
{
cout << (*Map)[i] << "\n";
}
cout << "HP: " << HP << "/" << MaxHP;
controls();
}
ClearScreen();
cout << "--------TUTORIAL 3";
cout << "\n\n\tLook out for snakes (S), they could be dangerous!";
cin.get();
while (running and stage == 3)
{
Map = &map3;
ClearScreen();
for (int i = 0; i < 15; i++)
{
cout << (*Map)[i] << "\n";
}
cout << "\t\tHP: " << HP << "/" << MaxHP;
controls();
}
}
|