mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Refactor WarpClass.cpp to not use strings for tilemaps
They now use a constant int array instead.
This commit is contained in:
parent
cc0d5d1d79
commit
5126c4dbc4
3 changed files with 797 additions and 715 deletions
|
@ -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
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue