Mapgen4 Alternate Renderer

 from Red Blob Games
23 Mar 2025

My mapgen4 renderer is quite messy. It’s webgl instead of canvas, and it has a lot of optimizations to bring it from 30 sec/frame to 30 frame/sec. But those optimizations make it specialized to handle only what mapgen4 needed, and not any other features I want to experiment with. In contrast, my mapgen2 renderer was fairly clean and modular, easy to adapt to many different features. Since mapgen2 and mapgen4 both use the same dual-mesh structure underneath, I decided to try gluing the mapgen2 renderer onto the mapgen4 generator.

Go ahead, paint on this map:

For this project I looked through the code

Eventual goal is to try out some alternative mapgen algorithms

Email me , or comment here: