This is your work, valued

Silicon Valley CA & Seattle WA

Amit Patel

Elite
@redblobgames

I make interactive visual explanations of math and algorithms, using motivating examples from computer games. I work both with educators and game developers.

mapgen4. Mapgen4 procedural wilderness map generator

851

mapgen2. JavaScript version of mapgen2 polygon map generator algorithms

443

1843-planet-generation. One week experiment: learn how to procedurally generate maps on a sphere. Code is messy but it runs.

162

helloworld-sdl2-opengl-emscripten. Basic program that uses SDL2+OpenGL, compiling both locally and via emscripten

89

dual-mesh. V2 of dual polygon-triangle mesh code used in redblobgames's projects from 2017 to 2022. V3 (not here) used from 2023 onwards.

66

making-of-line-drawing. How I make an interactive tutorial using d3.js

41

circular-obstacle-pathfinding. Pathfinding around a set of circular obstacles

41

cpp-traverse. C++ Serialization library focusing on extensibility, both of input/output formats and of data types

18

2014-starter-page. If you want to write tutorials with interactive diagrams like mine, here's some code to get you started. I have vanilla, lit-html, Vue, React, Svelte, and Preact+HTM versions of a simple interactive diagram.

17

2025-roguelikedev. Each summer people on r/roguelikedev create a roguelike game, following a tutorial. I followed the tutorial in 2020 and made this.

15

2126-roguelikedev. 2021 Reddit r/roguelikedev summer tutorial series

12

making-of-draggable. How I handle mouse and touch events to drag objects around on my pages

12

making-of-circle-drawing. How I make an interactive tutorial using vue v2

12

2327-roguelikedev. 2023 Summer r/roguelikedev event

8

2003-rust-network-game. Simple server+client game with Rust+JS

7

2513-mapgen4-csharp. C# version of mapgen4 core algorithms only

6

aima-javascript. Javascript visualization (and implementation) of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"

6

2226-roguelikedev. 2022 Reddit r/roguelikedev summer tutorial series

6

2234-hunar-alife-simulation. Fun particle simulation

6

algovis. collection of projects and links about algorithm visualization

5

1824-rust-roguelikedev-tutorial. Following the reddit r/roguelikedev tutorial series, using the Rust version

5

2421-helloworld-rotjs-tiles. Example of Rot.js with Kenney sprites

4

2121-triangle-grids. Quick and dirty implementation of a triangle grid diagram using BorisTheBrave's python library

4

2002-rust-chat-server. Learning Rust, with Mac+Linux+Wasm outputs, websockets, threads

4

prng. Simple JS seeded random number generator

4

2543-mapgen1-hexagons. Putting together existing code (hexagons, mapgen1, mapgen2, draggable) into a map generator that lets you paint biomes

4

msdfgen. Multi-channel signed distance field generator

2

1705-learning-redis. Miniproject to use Redis as a game simulation store

2

delaunator. A really fast JavaScript library for Delaunay triangulation of 2D points

2

Python-world-gen. A python worldgen project

1

icons. All SVG icons available on http://game-icons.net

1