git repos / saland

commit 2826127d

Poul Sander · 2019-04-14 15:30
2826127dbd2c3eb61a12dabc22f5ecc459957a69 patch · browse files
parent 1dcca51a02aa38105a38a9cd7776fc991ec8ba43

Add the "city" map

Changed files

M src/saland/GameRegion.cpp before
diff --git a/src/saland/GameRegion.cpp b/src/saland/GameRegion.cpp index 506d8d1..a40e8fe 100644 --- a/src/saland/GameRegion.cpp +++ b/src/saland/GameRegion.cpp
@@ -39,6 +39,9 @@ void GameRegion::Init(int x, int y, const std::string& worldName) {
std::string loadMap = mapFileName;
if (!sago::FileExists(loadMap.c_str())) {
loadMap = "maps/sample1.tmx";
+ if (region_x == 0 && region_y == -2) {
+ loadMap = "maps/city_0x-2.tmx";
+ }
}
b2Vec2 gravity(0.0f, 0.0f);
placeables.clear();