A strategy game where you guide a hero through a monster filled tower to get the treasure at the end. The monsters all move differently and you must figure out where they can and can not get you.

Report article RSS Feed Enemy Randomization in MicRogue

A summary explaining the logic behind enemy randomization.

Posted by JasonHPickering on Oct 15th, 2013

Enemy randomization

So this is going to be an article about how I did the enemy selection in MicRogue.

Finding all the enemies

The first thing I do is look at the list of possible enemies. When the game starts the game has access to only 4 enemies.

After collecting treasure more and more enemies are added to the game so eventually the game will have a much larger range to choose from.

Character Rarity

Each character has a rarity number according to the floor. This is how often a monster can show up on a floor and also how often it shows up in the "Monster Bag" (More on that in a bit). Below you can see the rarity for the rat and skeleton across the first 4 floors

Rarity is also something that I can change as new monsters are unlocked, so as Rats are plentiful in the beginning of the game, they are much rarer after more monsters have been added.

Monster Bag

Next I create something I have been calling the "Monster Bag". Each monster is dumped into an array for its monster rarity. so for the Rat having a Rarity of 4, 4 Rats are dropped into the "Monster Bag". so here are some examples of the "Monster Bag" early game and late game.

Monster Selection

Next monsters are selected for the floor. So 4 Random Monsters are pulled from the bag, so even though there is an Eye in the bag, it might not show up, because there is only one in the bag.

Danger Value

The last thing I do is check the monsters that have been selected. Each monster has been assigned a Danger Value. The selected monsters must have a combined value over a base value, which I increase as the player goes through the game.

So if the combined value needs to be 5 or greater and 4 enemies are selected at least 1 rank 2 monster must be selected. and when a value 6 is needed you could have 2 rank 2 or 1 rank 3.

Well I think that is about it for now. Feel free to ask any questions.

Post comment Comments
AstronautChef Oct 15 2013, 11:40pm says:

The enemies are so cute ^-^

+4 votes     reply to comment
Kuznetsovsky Oct 16 2013, 6:15am says:

Interesting system. Nice game, really looking forward to playing it.

+3 votes     reply to comment
ind1 Oct 18 2013, 10:40am says:


+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Developed By
Send Message
Official Page
Release Date
Game Watch
Track this game
Report Abuse
Report article
Related Games
MicRogue Single Player Turn Based Tactics
Related Engines
FlashPunk MIT TBD