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
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "map.hpp"
|
||||
#include "dinkyecs.hpp"
|
||||
|
||||
class WorldBuilder {
|
||||
public:
|
||||
|
@ -11,11 +12,13 @@ class WorldBuilder {
|
|||
void partition_map(Room &cur, int depth);
|
||||
void make_room(size_t origin_y, size_t origin_x, size_t width, size_t height);
|
||||
void add_door(Room &room);
|
||||
void generate();
|
||||
void set_door(Room &room, int value);
|
||||
void place_rooms();
|
||||
bool dig_tunnel(PointList &holes, Point &src, Point &target);
|
||||
void tunnel_doors(PointList &holes, Room &src, Room &target);
|
||||
void update_door(Point &at, int wall_or_space);
|
||||
void stylize_room(int room, string tile_name, float size);
|
||||
void generate_map();
|
||||
void place_entities(DinkyECS::World &world);
|
||||
void generate(DinkyECS::World &world);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue