Mario map: initial map has 18 columns
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "maploader.hpp"
|
||||
#include "../sdlpp/sdlpp_rectrenderer.hpp"
|
||||
#include <array>
|
||||
#include <fstream>
|
||||
#include "sprites.hpp"
|
||||
#include "blocks.hpp"
|
||||
@@ -93,6 +94,9 @@ void loadMap(std::shared_ptr<SDLPP::Scene> &scene, const std::string &file, std:
|
||||
}
|
||||
}
|
||||
}
|
||||
if(objects.size() < 18) {
|
||||
objects.resize(18);
|
||||
}
|
||||
}
|
||||
|
||||
// tuple - world object type, object, world character type, character, modifier type, modifier data
|
||||
|
||||
Reference in New Issue
Block a user