1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Refactor Spacestation2.cpp to not use strings for tilemaps

They are now stored in const int arrays instead. Except for the Prize
for the Reckless room, which I made sure had its spikes removed in No
Death Mode and the Time Trial.
This commit is contained in:
Misa 2020-05-17 15:55:20 -07:00 committed by Ethan Lee
parent 781aa38e1f
commit 8a573af273
3 changed files with 2505 additions and 2171 deletions

View File

@ -1379,8 +1379,7 @@ void mapclass::loadlevel(int rx, int ry)
if (warpx && warpy) background = 5;
break;
case 5: //Space station
tmap = spacestation2.loadlevel(rx, ry);
fillcontent(tmap);
contents = spacestation2.loadlevel(rx, ry);
roomname = spacestation2.roomname;
tileset = 0;
break;

File diff suppressed because it is too large Load Diff

View File

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