Lurker News

Comments (127) 36 threads

s-macke13 replies#
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?

s-macke#
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.
vanderZwan1 reply#
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

s-macke1 reply#
Well, only the games/projects count which I would add to the readme. And sorry, I have to say no here.
vanderZwan#
No worries, I just wasn't clear on whether you wanted to know of more projects and devlogs on the same topic in general, or about finished games.
sourthyme#
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.
s-macke1 reply#
I watched the video. It doesn't look like liquid but something else. Some strange particle effects. But maybe I am wrong.
anotheryou#
more like magnetic, acid sand
speeq#
It's really fun. Well done!
VectorLock#
Yeah PowderToy springs to mind.
s-macke#
Watched a video. That looks close. However I think they used just some cheap particle effect.
Impossible1 reply#
Vessel (https://store.steampowered.com/app/108500/Vessel/) and more recently Claybook (https://www.claybookgame.com) come to mind. They both use SPH fluids afaik. The upcoming Noita (https://store.steampowered.com/app/881100/Noita/) has some particle based fluids. Tommy Referenes (Super Meatboy programmer) was working on an unreleased game called Goo (https://vimeo.com/1793371). Also Riders on a Storm (http://www.the2bears.com/?page_id=652) a fluid dynamics shmup inspired by Plasma Pong.
s-macke#
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.

How did you find these games?

s-macke#
I added it. Thanks
lutorm1 reply#
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.

s-macke1 reply#
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.
emmelaich#
Jupiter's atmosphere would get molasses-y.
mappu1 reply#
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.

Can't remember the name...

mappu#
Yes! Thank you.

Continue this thread — 2 more replies

Continue this thread — 1 more reply

AndrewStephens2 replies#
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.
schiffern#
Don't knock it, that volcano mine pays the bills.
dotancohen#
You should see mail delivery in Aleppo.
nabla94 replies#
Very nice.

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.

vanderZwan2 replies#
I suspect 3D fluid dynamics gets a lot slower a lot more quickly
nabla91 reply#
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.

8note#
but how will it know if my sailing by the Lee is faster than the waves?

and I'll lose out of surfing!

samatman1 reply#
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.

semi-extrinsic#
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.
s-macke1 reply#
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.
mrfredward#
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.
adinb#
Something like this? http://devmgames.com/sillysailing/

I could have sworn in the developer's touch arcade interview that he mentioned having a CFD sim for this game.

s-macke4 replies#
Thanks stared. I forked the repository and will make a pull request. Also I have seen your quantum game project.

Continue this thread — 4 replies

Load more comments