Coin Collector - Unity Game
Coin Collector is a potentially endless 2D mini-game featuring procedurally generated layouts. The score is incremented based on the amount of time in between coin collections (shorter is better) so players should strategize how to navigate each level for minimizing time between coins before reaching the trap door to the next level, at which point a new level is generated.
Coin Collector was made in Unity using C# and 2D physics. The caves and coin placements are procedurally generated. The player's movements are controlled by the arrow keys and their position does not reset between levels, as if they fell through the trap door into the next level. Caves designs are determined by randomly generating several "rooms" of empty spaces and then ensuring that they are all connected by adding passageway as needed. The locations of the coins and trapdoor are also determined randomly by pulling from the pool of empty locations and removing the selected location and those too near it from that pool before the next location is determined.
Coin Collector