How Townscaper Works: A Story Four Games in the Making | AI and Games #65 @AIandGames
How Townscaper Works: A Story Four Games in the Making | AI and Games #65  @AIandGames
Uploaded March 2022 | Updated November 2026, 1 day ago
AI and Games is a YouTube series on research and applications of Artificial Intelligence in video games. It's supported through and wouldn't be possible without the wonderful people who support it via Patreon and YouTube memberships.

patreon.com/ai_and_games
youtube.com/channel/UCov_51F0betb6hJ6Gumxg3Q/join

--

Townscaper is a city-building simulator powered by a clever and practical use of procedural content generation. But how does it work? In this video, we explore the inner workings of the game by revisiting the previous works of its creator Oskar Stalberg. The secret to how the game works is it's the culmination of everything else he has done to date.

Special thanks to Oskar Stalberg for appearing in this episode, you can follow him on Twitter at:
twitter.com/OskSta

You can play the Townscaper PC demo at:
oskarstalberg.com/Townscaper

In addition to our interview, this video is inspired by the following presentations:

@Konsoll 2018: Developing the Bad North Look
youtube.com/watch?v=6JcFbivo8dQ

EPC2018: Wave Function Collapse in Bad North
youtube.com/watch?v=0bcZb-SsnrA

@indiecadeeurope1900 2019: Organic Towns from Square Tiles
youtube.com/watch?v=1hqt8JkYRdI

@Konsoll 2021: The Story of Townscaper
youtube.com/watch?v=APIdkBwwWJI

@swedengamearena4413 (Conference) 2021: Beyond Townscaper
youtube.com/watch?v=Uxeo9c-PX-w

--

Plus if you're interested in trying your hand at Marching Cubes, Wave Function Collapse or Quadrilateral Grids, then here are some extra links to check out!

Marching Cubes video by @SebastianLague
youtube.com/watch?v=M3iI2l0ltbE

Wave Function Collapse by Maxim Gumin:
github.com/mxgmn/WaveFunctionCollapse

Wave Function Collapse Tutorial on @PROCJAM
procjam.com/tutorials/wfc

Model Synthesis by Paul Merrell:
paulmerrell.org/model-synthesis

Hexagonal Grids by Amit Patel (Red Blob Games)
redblobgames.com/grids/hexagons

--
Chapters
[00:00] Intro
[01:23] What is Townscaper?
[04:05] The Division, City Building & BrickBrock
[08:51] Wave Function Collapse in Bad North
[20:23] Quadrilateral Grids in Night Call
[23:41] The Secret of Townscaper
[36:20] Future Work
[37:01] Closing

---
Plus specials thanks to my Patrons for sharing their Townscaper settlements for use in this episode. A list of all appearing towns and their timestamps is provided below

Bernhard Werner:
Four Islands (00:17) (38:00)
Wordle Town (02:55)

Happy Pie:
Pie Town (00:20) (28:11) (30:17)
Highpe Town (26:39)
Lime Hills (28:00) (38:13)
Fritids Boden (38:18)

--
All music in this episode is by @teknoaxe
teknoaxe.com

--
You can follow AI and Games on Twitter:
twitter.com/AIandGames

Join me for live streams over on Twitch:
twitch.tv/aiandgames

Join our Discord Community:
bit.ly/AIandGamesDiscord

Get yourself an AI and Games t-shirt over on Teespring!
teespring.com/stores/aiandgames

#Townscaper #IndieDev #GameDev
How Townscaper Works: A Story Four Games in the Making | AI and Games #65Forzas New Drivatar Is Lying to YouThe Story of The Mechanical Turk: the 18th Century Chess Automaton | The History of AI and Games #1We did it! Goal State is funded. Thank you all! #kickstarter #crowdfunding #gamedevFacts about the AI of Dark Souls (Part 3)Trepang 2: How We Saved The Helicopter Boss Fight!Fun Facts About Mario 64 (Part II)Quicklook: REPLACED | AI and Games LivestreamMy Favourite Games from the 2023 AI and Games JamJust How Smart Are the AI Characters in Inworlds Origins?How Bodyguard Works in HITMANEjecting Organs Everywhere...
AI and Games |

How Townscaper Works: A Story Four Games in the Making | AI and Games #65

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER