Add hole block and separate load/create map

This commit is contained in:
Askou
2021-06-01 15:08:21 +02:00
parent 87ef807308
commit c905803fc5
6 changed files with 140 additions and 41 deletions
+2 -1
View File
@@ -77,7 +77,8 @@ namespace BBM
scene->addEntity("camera")
.addComponent<PositionComponent>(0, 20, -5)
.addComponent<CameraComponent>();
MapGenerator::generateMap(15, 15, rand(), scene);
std::srand(std::time(NULL));
MapGenerator::loadMap(16, 16, MapGenerator::createMap(16, 16), scene);
return scene;
}