This is a picture of a regular room.
Each rooms has a chance to have props with a certain layout.
If a rock is spawn the player can try to break it by exploding it. These can spawn common collectibles like money and such...
There are many different type of layout possible, including a totally random one.
The generator simply picks a shape, an anchor position and the type of prop to be generated.
The process itself is simply a 2D boolean array. We simply draw on that array like we would in a bitmap using traditional image manipulation algorithms.
Once the array is set, then we simply add a given prop for each true cell of the array
We then finally remove every props that are either outside its room or obstructing an entry/exit point.
Right now, only two types of props can be generated, although the algorithm itself is kinda flexible.