1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-09 10:29:45 +01:00

Refactor Labclass.cpp to not use strings for tilemaps

They now use a const int array instead.
This commit is contained in:
Misa 2020-05-17 13:48:07 -07:00 committed by Ethan Lee
parent f617b6d695
commit cc0d5d1d79
3 changed files with 1509 additions and 1325 deletions

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@
class labclass class labclass
{ {
public: public:
std::vector<std::string> loadlevel(int rx, int ry); std::vector<int> loadlevel(int rx, int ry);
std::string roomname; std::string roomname;
int coin, rcol; int coin, rcol;

View file

@ -1319,8 +1319,7 @@ void mapclass::loadlevel(int rx, int ry)
} }
break; break;
case 2: //The Lab case 2: //The Lab
tmap = lablevel.loadlevel(rx, ry); contents = lablevel.loadlevel(rx, ry);
fillcontent(tmap);
roomname = lablevel.roomname; roomname = lablevel.roomname;
tileset = 1; tileset = 1;
background = 2; background = 2;