mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
Refactor Otherlevel.cpp to not use strings for tilemaps
Instead, they're all held in a constant int array instead.
This commit is contained in:
parent
8a573af273
commit
ec72031cfd
3 changed files with 7840 additions and 6763 deletions
|
@ -1306,8 +1306,7 @@ void mapclass::loadlevel(int rx, int ry)
|
||||||
case 1: //World Map
|
case 1: //World Map
|
||||||
tileset = 1;
|
tileset = 1;
|
||||||
extrarow = 1;
|
extrarow = 1;
|
||||||
tmap = otherlevel.loadlevel(rx, ry);
|
contents = otherlevel.loadlevel(rx, ry);
|
||||||
fillcontent(tmap);
|
|
||||||
roomname = otherlevel.roomname;
|
roomname = otherlevel.roomname;
|
||||||
tileset = otherlevel.roomtileset;
|
tileset = otherlevel.roomtileset;
|
||||||
//do the appear/remove roomname here
|
//do the appear/remove roomname here
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -27,7 +27,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
void addline(std::string t);
|
void addline(std::string t);
|
||||||
std::vector<std::string> loadlevel(int rx, int ry);
|
std::vector<int> loadlevel(int rx, int ry);
|
||||||
|
|
||||||
std::string roomname;
|
std::string roomname;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue