Started working on the loot system which will eventually become the inventory/improved collision system.

This commit is contained in:
Zed A. Shaw 2024-11-07 00:29:06 -05:00
parent c1d43694b0
commit 0a268591c2
5 changed files with 55 additions and 29 deletions

View file

@ -41,8 +41,8 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
world.set<Tile>(enemy2, {"*"});
auto gold = world.entity();
world.set<Position>(gold, {game_map.place_entity(game_map.room_count() - 1)});
world.set<Treasure>(gold, {100});
world.set<Position>(gold, {game_map.place_entity(3)});
world.set<Loot>(gold, {100});
world.set<Tile>(gold, {"$"});
}