miuradio
How It SpawnsThe tricks inside famous games, shown running.›

How It Spawns

How does water splash in Noita, when every pixel only knows how to fall?

Premieres today. Follow to see it first.

Story

You asked how liquids work in Noita. Petri Purho of Nolla Games showed it in a 2019 talk, before the game was out. The base rule is for sand: a pixel looks at the spot below, and if that's empty it moves down; if not, it tries down-left and down-right. He called that "like 95 percent of our tech".

Water is the same rule with one more line at the end: check left and right, and move there if it's empty. That is what lets it settle flat instead of piling up. Gases are the inverse: the same rule upside down. In a written interview that year he added how liquids of different weight sort themselves: compare the densities before a pixel moves down, and swap.

The splash is a different trick, from a small game he made in 2008. A pixel in a solid body's way is taken out of the falling-sand grid and put into a particle simulation that tracks its velocity and gravity. It travels until it hits another pixel in the world, and then it is put back into the grid. In 2019 he said Noita was still using this technique.

The cave, the boulder and the run in this film are our own simplified version, built in code: the grid really runs these rules. The hill of water and the drop with no splash are our own run of the rule alone, not his demos. The 72 pixels in flight at the splash's peak, how hard they are thrown and the gravity are our numbers, not the game's. The talk is from 2019; the game today may differ.

Water, oil or lava: what would you pour in first?

Sources: Petri Purho, "Exploring the Tech and Design of Noita", GDC 2019 (02:51-05:17, 07:51-08:19); his answers to 80.lv, "Noita: a Game Based on Falling Sand Simulation", 2019.
Not affiliated with or endorsed by Nolla Games.
Sounds and music: our own, made in code.

Link copied