Skip to content
Mohan Selvan
All projects
Reinforcement Learning2024

Procedural Level Generator for Platformers

A tool that uses reinforcement learning to generate 100% solvable 2D platformer levels.

A complete generated level: a winding path of open tiles through solid ground

Built as part of my Master’s dissertation on procedural content generation.

What it does

  • Given the path a player should take, an AI agent builds a level around it, one tile at a time.
  • It learns to keep the path reachable, place tiles sensibly and avoid dead ends.
  • Finished levels are checked in a Unity platformer game.
Debug view of a generated level, with the path from start to goal traced in green and cyan
Debug view of a generated level, with the path from start to goal traced in green and cyan
Close-up of a generated level, with the player standing on a platform
Close-up of a generated level, with the player standing on a platform