mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Refactor Finalclass.cpp to not use strings for tilemaps
Instead, they're all stored in a constant int array. I made sure The Gravitron still has 30 rows just like Outer Space, though I don't think it matters.
This commit is contained in:
parent
5126c4dbc4
commit
781aa38e1f
3 changed files with 1848 additions and 1612 deletions
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@
|
|||
class finalclass
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
std::vector<int> loadlevel(int rx, int ry);
|
||||
|
||||
std::string roomname;
|
||||
int coin, rcol;
|
||||
|
|
|
@ -1385,8 +1385,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
tileset = 0;
|
||||
break;
|
||||
case 6: //final level
|
||||
tmap = finallevel.loadlevel(finalx, finaly);
|
||||
fillcontent(tmap);
|
||||
contents = finallevel.loadlevel(finalx, finaly);
|
||||
roomname = finallevel.roomname;
|
||||
tileset = 1;
|
||||
background = 3;
|
||||
|
@ -1538,8 +1537,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
break;
|
||||
case 11: //Tower Hallways //Content is held in final level routine
|
||||
{
|
||||
tmap = finallevel.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
contents = finallevel.loadlevel(rx, ry);
|
||||
roomname = finallevel.roomname;
|
||||
tileset = 2;
|
||||
if (rx == 108)
|
||||
|
|
Loading…
Reference in a new issue