Buy on itch.io

Pages

Tuesday, March 31, 2015

Dungeon Colony Rooms - Ownership

I've introduced some of the new room features in a previous blog post. Since then I've continued on rooms and built the logic to let minions take ownership of the room Lair type. All a minion needs to walk on a tile that is defined as the room type Lair and if that room is still vacant, the minion will automatically become owner of it. I will add a way to remove owners as well. Other room types, such the Pantry or Treasury do not need owners. They have different functions such as managing food and gold reserves for the entire Dungeon.

You can see in the following Gif animation some of the new features in action:

  1. I'm first setting up two Lair rooms by selecting the lair room button on the right and then drawing the room in. (Lair rooms have the color blue)
  2. Then I'm sending a minion in the left room; as soon as he enters the room tile, he becomes owner.
  3. The other new feature is the room info. You can see that I de-selected the room tool button and the blue color showing the room area disappears. However, you can still see the room designation in a lighter blue when hovering the mouse over the room. After a few milliseconds, a popup also gives information about the room. In this case whether the room has an owner or not. 

What's not shown in the gif above is some additional info when hovering over a room. If the lair has an owner, the owner will be highlighted, so that you can find out quickly where the owner is.

... Next: I'll start building the logic that determines what a minion can do in a room. 

1 comment: