Unity 2D Random Dungeon Generator for a Roguelike Video Game
A simple approach to programming a top down 2D random dungeon generator for roguelike video games using C# in Unity.
This is a course intended for beginner to intermediate Unity / C# video game developers who have an interest in the classic rogue-like video game genre. We'll be borrowing old familiar pixel art graphics to generate our 2D grid-based environments, characters and enemies.
Explore Procedural Level Generation
This course is not a complete game. It's purpose is to explore a couple of simple random dungeon generation tactics and get you started in the world of procedural level generation. You'll also learn how to apply a rounded edge around all of the walls of your random dungeon to break up the repeating patterns and give the environment a more organic look.
What You'll Learn
- Explore simple random dungeon generation tactics in Unity
- Generate 2D grid-based environments using C#
- Work with pixel art graphics to build dungeon environments
- Generate characters and enemies within your 2D environment
- Apply rounded edges around the walls of your random dungeon
- Break up repeating patterns to give environments a more organic look
- Use a flood fill approach to find the shortest path between an enemy and the player
- Create enemies that patrol in random directions
- Have enemies chase the player using flood fill path finding
- Have enemies engage with the player to begin attacking
Enemy Path Finding
As an added bonus, I've included a section to demonstrate a simplified method for enemy path finding. This method uses a flood fill approach to find the shortest path between an enemy and the player. Your enemies will be able to patrol in random directions, chase the player using a flood fill path finding approach as well as engage with the player to begin attacking.
Enroll Now!