Hi! I make interactive visual explanations of math and algorithms, using motivating examples from computer games.
Learn#
I’ve been curating game development articles since 1990[6], and my web site has been up since 1995. All of my articles are available for free, with no signup and no ads. The main audience is independent, student, and hobbyist software developers. I started experimenting with interactive explanations in 2004, but didn’t figure out until 2007 the style of interactive explanation I use now[7].
Play#
I make fun demos while learning new things and writing explanations:
Ponder#
I also explore ideas sometimes without writing a full guide:
- Alternative to Voronoi with rounder cells
- Procedurally generating names using pronunciations and neural networks
- Procedurally modifying spelling using pronunciations and letter-phoneme alignment
- Understanding the color yellow: why are there three primary colors in science but four primary colors in board games, crayons, etc.?
- Distance to seed points using Breadth First Search
- Homunculus: stretching and shrinking maps to match a game’s needs[9]
- Map generation with no code, only image filters
- Terrain shader experiments for filling triangles with various patterns
- Placing natural resources on a map
- Hexagon on Saturn[10]: can I recreate it?
- Procedural planet generation on a sphere using Voronoi+Delaunay
- Reshaping distributions[11]
- Signed distance fields[12]: quick visual explanation
- Railroads on a hex grid
- Game map design[13]: what should you show and not show?
- /r/roguelikedev summer event, 2020, 2021, 2022, 2023, where people in the reddit/discord communities make our own roguelikes over several weeks.
Meta#
I’m working on a series of pages that explain how to make interactive guides:
- Tutorial about making interactive tutorials, including multiple diagrams and drag-and-drop. This shows how I write my interactive tutorials since 2015, using vue.js
- Event handlers for dragging objects around, my recommendations for mouse/touch event handling for modern browsers as of 2023.
- An older Tutorial about making interactive tutorials. This shows how I wrote my interactive tutorials from 2011–2015, using d3.js.
- Starter code[14] you can study and copy, with versions using React, Vue, lit-html, vanille js, and Preact
- How I implement my interactive diagrams, part 1[15] and part 2[16]. This is a high level overview without being specific to any particular library.
- Little design elements[17] I like to use — colors, shapes, controls, etc.
- Drag handles with constraints
- Arrows outside the diagrams[18], something I haven’t seen elsewhere, and haven’t used yet
- Responsive web design implementation for interactive diagrams (canvas, svg, webgl)
- Notes on how I made the A* pages and the tool I made for graph editing
- Blog posts[19] about my process and struggles
- Scrubbable numbers in ObservableHQ[20]
- Using Vue’s reactivity system with Canvas[21], which can also work with D3.
- Using Vue with KaTeX, proof of concept.
- Using Vue with pointerevents, quick example.
- Vue text modification using render functions for syntax highlighting, proof of concept.
- How to make diagram and text elements highlight together[22], with 10 lines of JavaScript. It’s a simple example that might help you get started.
Accompanying code is open source, under either the MIT License[23] or the Apache v2 License[24]. Both allow use in commercial projects. Other projects are found at at github/amitp[25] and github/redblobgames[26]. My project ideas board[27] is public.
About me#
I’ve been helping people make games since 1990. I wrote games earlier in life, with Solar Realms Elite[28] being the most well known[29], then worked on an environmental simulation game called BlobCity, then took a break for over a decade. The recent rise of indie, mobile, tablet, social, and web games have made me interested in game development again. My current passion is using interactivity on the web for learning, especially computer science and math. I’ve started with game development because it’s a rich source of interesting problems that can be explained visually. With modern web browsers, we can use explanations that don’t follow the formats used in magazines, technical papers, and books. We can combine learning by reading, learning by watching, and learning by doing[30].
I previously worked with Root-1[31] on educational games, Wild Shadow Studios on Realm of the Mad God[32], Peter Norvig on interactive diagrams for Artifical Intelligence: A Modern Approach[33], and Nonagon Games on A Chronicle of Misdeeds[34]. I’m currently working with Jetbolt Games[35] on Galactic Assault Squad[36].
If you’re in the Silicon Valley area and want to chat in person, email me at redblobgames@gmail.com. I’m especially interested in algorithms related to maps, procedural generation, and pathfinding, but love to chat about anything.