This past week I built my first roguelike for the 7drl.org competition.
Let's start with the outcome: Play Rogue Caravan.
- 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.