Author here.
It started as a technical demonstration for fluid dynamics in the web browser. Then I saw the js13kgames competition and the decision was made to make a game out of it. A game in which the fluid mechanic counts. The decision for the Lunar Lander genre then was quiet easy.
Does someone know more games then the two I mentioned in the README (Plasma Pong and Pixeljunk Shooter) with more or less realistic fluid dynamics?
Maybe one of the more interesting technical aspects is the usage of WebAssembly here. I used Emscripten, so the main part is written in plain C. But I threw away all the JavaScript overhead and used just the plain size optimized wasm file. This was easier than expected.
Really cool stuff! Both technically and on the game design side
> Does someone know more games then the two I mentioned in the README (Plasma Pong and Pixeljunk Shooter) with more or less realistic fluid dynamics? A friend of mine, Thomas ten Cate, tried but eventually shelved a project to make a fluid-dynamics based game tha he called Archimedes[0]. Before he moved on to other projects he blogged about it[1]. Does that count? [0] https://frozenfractal.com/games/archimedes/ [1] https://frozenfractal.com/blog/tags/archimedes
You might be surprised that a lot of phones can run this at a decent frame rate. Adding mobile touch support could be good. It runs the start screen well on my Nexus 6P.
This is great list. Thank you very much. I added most of the games. It is precisely through this post that I have a strong desire to follow your postings,blogs,.... Unfortunately there is no button for that.
This is cool! However, you know space is ... empty, right? ;-)
It also seems like the physics is off. Like you're flying through molasses. There's just a lot of damping. Finally, I think it would be more fun if the <--> rotated the ship for thrust vector control, instead of triggering lateral thrusters with no torque.
Yes I know. The simulation of the ship is not accurate. I had code written for more advanced physics but I skipped it for the js13kentry. Time was running short and I was afraid the game gets too hard.
Actually you land on planets with an atmosphere. So you have some "dampening" from the atmosphere.
I remember a DOS (or early Windows) game like this. A top-down, 2D game for two players or 1 + CPU. There were no obstacles, but every time you moved through the background fluid, more fluid was created in your colour (purple / pink), and you could envelop the enemy player by 'swooshing' it around over them.
Was it Ichor[1][2]? A bit later than the "early Windows" days I think (I remember hearing about it around 2007), but it also matches your description and it was the first thing I thought of after playing the game in the post
This is great - especially the pixel-perfect collision detection. But honestly, these colonists don't really deserve mail service if they insist on building their cities in such difficult environments.
Has anyone made fluid dynamics sailing game yet? You would need only two controls, trim and rudder (direction instead rudder might be easier to comprehend). Wrong trim and point of sail could broache or even capsize the boat. Oh, and you could add not just the winds but the sea currents and waves also. Now I'm salivating.
You don't need 3D fluid dynamics for 2d sailing game.
You would have 3 separate 2d layers for wind, sea currents and then wave layer. The waves don't have to follow the wind, but they they could have specular reflection from the land. It would make sailing in complex archipelago or narrow choke points more realistic.
One could get a decent experience with "2.5D" fluid dynamics.
Two 2-d planes, one for current and one for wind, and a bit of creative fakery to model sail and keel dynamics. This could play nicely with some tuning.
You could get pretty realistic lift on the sail from simple (potential or vertex panel) methods. But the drag's gonna be a bitch to get right. And you probably have to neglect wave motion. Would be really fun to try though.
That is exactly what I am asking. So far I haven't seen such a game. But I think it is easy doable with a few changes. I will remember it as a possible idea for a game entry next year.
The boundary between air and water makes the simulation much more difficult. While you can neglect the effects of air on the water, not having a well defined boundary for where the water simulation ends means that CFD 101 level techniques aren't enough anymore.
Comments (127) 36 threads
Does someone know more games then the two I mentioned in the README (Plasma Pong and Pixeljunk Shooter) with more or less realistic fluid dynamics?
> Does someone know more games then the two I mentioned in the README (Plasma Pong and Pixeljunk Shooter) with more or less realistic fluid dynamics?
A friend of mine, Thomas ten Cate, tried but eventually shelved a project to make a fluid-dynamics based game tha he called Archimedes[0]. Before he moved on to other projects he blogged about it[1]. Does that count?
[0] https://frozenfractal.com/games/archimedes/
[1] https://frozenfractal.com/blog/tags/archimedes
There’s always the classic Liquid War:
https://www.gnu.org/software/liquidwar6/
https://www.clear.rice.edu/comp460/PRSite/tech/cfd.htm
How did you find these games?
It also seems like the physics is off. Like you're flying through molasses. There's just a lot of damping.
Finally, I think it would be more fun if the <--> rotated the ship for thrust vector control, instead of triggering lateral thrusters with no torque.
Can't remember the name...
[1] https://www.youtube.com/watch?v=9MGoyAiPQog
[2] https://www.fun-motion.com/physics-games/ichor/
Continue this thread — 2 more replies
Continue this thread — 1 more reply
Has anyone made fluid dynamics sailing game yet?
You would need only two controls, trim and rudder (direction instead rudder might be easier to comprehend). Wrong trim and point of sail could broache or even capsize the boat. Oh, and you could add not just the winds but the sea currents and waves also.
Now I'm salivating.
You would have 3 separate 2d layers for wind, sea currents and then wave layer. The waves don't have to follow the wind, but they they could have specular reflection from the land. It would make sailing in complex archipelago or narrow choke points more realistic.
and I'll lose out of surfing!
Two 2-d planes, one for current and one for wind, and a bit of creative fakery to model sail and keel dynamics.
This could play nicely with some tuning.
I could have sworn in the developer's touch arcade interview that he mentioned having a CFD sim for this game.
I encourage you to add it to the science-based games list https://github.com/stared/science-based-games-list
Continue this thread — 4 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.