first working demo

This commit is contained in:
2024-06-30 03:24:19 -04:00
parent 6dcf0f41e8
commit 12b74f12d4
5 changed files with 22 additions and 46 deletions

View File

@ -42,14 +42,14 @@ public:
// just in case you want to retain the potion effects
void enter_level(character *who);
void leave_level(character *who);
private:
public:
struct effect {
character *who;
stat_name statn;
int amount;
};
std::vector<std::string> map;
std::string map[MAP_HEIGHT];
int level;
// use this to remember every applied potion
@ -57,31 +57,6 @@ private:
};
const std::string default_map =
"|-----------------------------------------------------------------------------|\
| |\
| |--------------------------| |-----------------------| |\
| |..........................| |.......................| |\
| |..........................+########+.......................|-------| |\
| |..........................| # |...............................|--| |\
| |..........................| # |..................................|--| |\
| |----------+---------------| # |----+----------------|...............| |\
| # ############# |...............| |\
| # # |-----+------| |...............| |\
| # # |............| |...............| |\
| ################### |............| ######+...............| |\
| # # |............| # |...............| |\
| # # |-----+------| # |--------+------| |\
| |---------+-----------| # # # # |\
| |.....................| # # # |----+------| |\
| |.....................| ######################## |...........| |\
| |.....................| # # |...........| |\
| |.....................| # |------+--------------------|...........| |\
| |.....................| # |.......................................| |\
| |.....................+##########+.......................................| |\
| |.....................| |.......................................| |\
| |---------------------| |---------------------------------------| |\
| |\
|-----------------------------------------------------------------------------|\
";
"|-----------------------------------------------------------------------------|\n| |\n| |--------------------------| |-----------------------| |\n| |..........................| |.......................| |\n| |..........................+########+.......................|-------| |\n| |..........................| # |...............................|--| |\n| |..........................| # |..................................|--| |\n| |----------+---------------| # |----+----------------|...............| |\n| # ############# |...............| |\n| # # |-----+------| |...............| |\n| # # |............| |...............| |\n| ################### |............| ######+...............| |\n| # # |............| # |...............| |\n| # # |-----+------| # |--------+------| |\n| |---------+-----------| # # # # |\n| |.....................| # # # |----+------| |\n| |.....................| ######################## |...........| |\n| |.....................| # # |...........| |\n| |.....................| # |------+--------------------|...........| |\n| |.....................| # |.......................................| |\n| |.....................+##########+.......................................| |\n| |.....................| |.......................................| |\n| |---------------------| |---------------------------------------| |\n| |\n|-----------------------------------------------------------------------------|";
#endif