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:
parent
f617b6d695
commit
cc0d5d1d79
3 changed files with 1509 additions and 1325 deletions
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue