mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 11:12:19 +00:00
Add hole block and separate load/create map
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user