It was 2016 and everyone wanted to do a roguelike.

Loony Bin is a roguelike game developed with two other teammates: Rebeca Varea García (artist) and Alberto Chica Núñez (programming). It was developed for our “Web design and development” class in ActionScript 3 using Starling as the main library in companion with GreenSock and Hi-ReS-Stats for some minor behaviors.

I worked especially in the management of the different data structures of the game and in the map generator. The game auto-generates a random map every level with rooms connected between them.  After this, depending on the level in which the player is, enemies are generated fulling the rooms depending on the challenge value of each enemy and trying to generate few but powerful enemies better than various weak enemies.

For example: If you are at level 1 and every room needs to has a challenge value of 10 the algorithm will generate 2 enemies with challenge value of 5 and no 5 enemies with a challenge value of 2.