Fluid Flow Simulation v1

WASM in your browser

I built this to learn WebAssembly. It is written in Rust and compiled for the browser.

For the fluid flow simulation, I used a technique described in the paper Curl-Noise for Procedural Fluid Flow by Bridson, Hourihan, and Nordenstam.

START GAME

The Objective

There is no ending. It is just a small WebAssembly demo and a chill sensory game. It works on desktop and most phones.

Back in my day… (I’m not old, just nostalgic)

If you grew up with access to the internet and a computer in the early 2000s and 2010s, you might have fond memories of playing Flash games through your browser. I spent a lot of time on sites like:

Some of us even made Wix pages, embedded Flash games, and marked the site as “educational” to get around the school filter.

I promise we were still doing schoolwork, usually. We were often rewarded with “computer time” if we finished our exams or assignments early during study hall. This is when people either watched videos, took online quizzes, or played whatever Flash games they could access through the school firewall.

I know that today there’s no real need for that; most people just bring their phones and play whatever they want to pass the time. But back then, the most fun you could have with your phone was probably Snake on a tiny display using T9 keys to move.

Goodbye Flash

                           _____  _____
                          <     `/     |
                           >          (
                          |  _      _  |
                          | |_) | |_) |
                          | | \ | |   |
                          |           |
           ______.______%_|           |__________  _____
         _/                                      \|     |
        |                  F L A S H                  <
        |_____.-._________             ____/|___________|
                          |* 01/01/1996|
                          |+ 12/31/2020|
                          |            |
                          |            |
                          |   _        <
                          |__/         |
                           / `--.      |
                          %|           |%
                      |/.%%|          -< @%%%
                      `\%`@|     v       |@@%@%%     - 
                    .%%%@@@|%    |     % @@@%%@%%%%
               _.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%

Now that Flash is dead, I’ve always been interested in what would eventually replace it.

WebAssembly grabbed me because it can run close to native speed in a browser. It is not a replacement for every JavaScript app, but it is fun to mess with.


Read the next update