1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00

Refactor WarpClass.cpp to not use strings for tilemaps

They now use a constant int array instead.
This commit is contained in:
Misa 2020-05-17 14:21:52 -07:00 committed by Ethan Lee
parent cc0d5d1d79
commit 5126c4dbc4
3 changed files with 797 additions and 715 deletions

View File

@ -1364,8 +1364,7 @@ void mapclass::loadlevel(int rx, int ry)
obj.createentity(280, 3216, 9, 8); // (shiny trinket) obj.createentity(280, 3216, 9, 8); // (shiny trinket)
break; break;
case 4: //The Warpzone case 4: //The Warpzone
tmap = warplevel.loadlevel(rx, ry); contents = warplevel.loadlevel(rx, ry);
fillcontent(tmap);
roomname = warplevel.roomname; roomname = warplevel.roomname;
tileset = 1; tileset = 1;
background = 3; background = 3;

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
class warpclass class warpclass
{ {
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;
bool warpx, warpy; bool warpx, warpy;