mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +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)
|
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
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue