1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +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)
break;
case 4: //The Warpzone
tmap = warplevel.loadlevel(rx, ry);
fillcontent(tmap);
contents = warplevel.loadlevel(rx, ry);
roomname = warplevel.roomname;
tileset = 1;
background = 3;

File diff suppressed because it is too large Load Diff

View File

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