A procedural 2D infinite room generator built in Unity — smooth transitions, scalable rooms, and a consistent gameplay feel.
Developed an infinite sequence of dynamically generated rooms using a centralized Room Manager. Rooms are instantiated, recycled, and scaled in real time, with illusion-based transitions and variable zoom. The system includes smooth camera control, player scaling, and parameter-driven speed adjustments. Performance is optimized with coroutine-driven transitions and efficient room lifecycle management.
© 2025 Mehdi Benkaouz. The video below shows only gameplay; no source code or algorithms are public.
Technologies
- Unity • 2D pipeline, prefabs, scene composition
- C# • managers, state, gameplay parameters
- Coroutines • smooth transitions, timed sequences, zoom control
- Procedural generation • dynamic rooms, scalable geometry
- 2D camera systems • smooth tracking, zoom and illusion-based movement
- Performance • active room lists, recycle/destroy on demand