This past week I built my first roguelike and first ever game for the 7drl competition.
Let’s start with the outcome: Play Rogue Caravan
The basic premise is that you are a trader that supplies the gear and items seen in your typical Roguelikes and you must travel back and forth between cities without getting caught by bandits.
- Target selection: The bandits in the game choose either the player or an AI controlled trader as their targets. This process took many iterations to finally get working as intended, at first the bandits were simply randomly selecting either the trader or the player, then I got some slowdown because I was computing the paths too many times, finally I landed on comparing each enemies previous path to a new path and selecting the shortest one.
- Forest generation: This wasn’t too bad, but it took some thinking to figure out how to generate enough forest, but without making it too blocky and artificial looking.
- I ended up with a complete and playable game.
Thanks for playing!