Better repair kit icons and images, enemies no longer spawn in doors, death scene worked out mostly, and beak thing enemies.
This commit is contained in:
parent
21e8f4ce78
commit
455ea88989
9 changed files with 69 additions and 0 deletions
|
|
@ -117,6 +117,10 @@ DinkyECS::Entity WorldBuilder::configure_entity_in_room(DinkyECS::World &world,
|
|||
Point pos_out;
|
||||
bool placed = $map.place_entity(in_room, pos_out);
|
||||
dbc::check(placed, "failed to randomly place item in room");
|
||||
|
||||
// don't place anything inside a door
|
||||
if($map.$doors.contains(pos_out)) return DinkyECS::NONE;
|
||||
|
||||
auto entity = configure_entity_in_map(world, entity_data, pos_out);
|
||||
return entity;
|
||||
}
|
||||
|
|
@ -233,6 +237,7 @@ void WorldBuilder::place_entities(DinkyECS::World &world) {
|
|||
} else {
|
||||
auto player_data = config.enemies["PLAYER_TILE"];
|
||||
auto player_ent = configure_entity_in_room(world, player_data, 0);
|
||||
dbc::check(player_ent != DinkyECS::NONE, "placed the player in a door!");
|
||||
|
||||
player_pos = world.get<Position>(player_ent);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue