Started working on the loot system which will eventually become the inventory/improved collision system.
This commit is contained in:
parent
c1d43694b0
commit
0a268591c2
5 changed files with 55 additions and 29 deletions
4
main.cpp
4
main.cpp
|
@ -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, {"$"});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue