Game now loads random enemies and items into rooms but in rudimentary way. Need to now randomize more of it and make it more robust so only changing the .json is needed to get new effects and enemies.
This commit is contained in:
parent
31e5eb7fce
commit
f2864a62ee
13 changed files with 119 additions and 76 deletions
|
@ -12,13 +12,13 @@ using std::string;
|
|||
TEST_CASE("bsp algo test", "[builder]") {
|
||||
Map map(31, 20);
|
||||
WorldBuilder builder(map);
|
||||
builder.generate();
|
||||
builder.generate_map();
|
||||
}
|
||||
|
||||
TEST_CASE("pathing", "[builder]") {
|
||||
Map map(23, 14);
|
||||
WorldBuilder builder(map);
|
||||
builder.generate();
|
||||
builder.generate_map();
|
||||
|
||||
matrix::dump("WALLS", map.$walls, 0,0);
|
||||
println("wall at 0,0=={}", map.$walls[0][0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue