mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-22 08:49:46 +01: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:
parent
781aa38e1f
commit
8a573af273
3 changed files with 2505 additions and 2171 deletions
|
@ -1379,8 +1379,7 @@ void mapclass::loadlevel(int rx, int ry)
|
||||||
if (warpx && warpy) background = 5;
|
if (warpx && warpy) background = 5;
|
||||||
break;
|
break;
|
||||||
case 5: //Space station
|
case 5: //Space station
|
||||||
tmap = spacestation2.loadlevel(rx, ry);
|
contents = spacestation2.loadlevel(rx, ry);
|
||||||
fillcontent(tmap);
|
|
||||||
roomname = spacestation2.roomname;
|
roomname = spacestation2.roomname;
|
||||||
tileset = 0;
|
tileset = 0;
|
||||||
break;
|
break;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@
|
||||||
class spacestation2class
|
class spacestation2class
|
||||||
{
|
{
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue