Lurker News

Comments (127) 36 threads

Earlier comments
xte#
Oh, despite it's not a "real" modern game a big prize! Games can be nice teaching solution, if well done and still being fun.
anotheryou1 reply#
Cool!

Can it run faster? This might need more roomy levels and stronger thrust, but faster speed would mean more feedback for a better feel of the physics.

s-macke2 replies#
On my computer the game runs at 40 FPS. So there is still room and I can increase the timestep if you want. This game simulates the Navier-Stokes equation on a grid of the size 256x128. Four times the size would already reduce the game to 10FPS or even more. Of course you can try to rewrite it to run on the GPU. An alternative would be to use so called Smoothed Particle Hydrodynamics. This is particle and not grid based. But this technique has other drawbacks.
wumms#
I love the faster one. Grabs much more attention. Great game! A satisfying thud on touchdown would be nice. (OT: this was the very first lunar lander I played on my father's ZX81: https://www.youtube.com/watch?v=jlS3fr3t4Fg)
elwell#
Somehow I beat it first try on the faster version, but couldn't on the original.
s-macke1 reply#
The problem with higher speeds were instabilities in the numerics. So I reduced the internal time step. Never tried to increase the speed again after solving a few of those problems.
anotheryou2 replies#
Alright :) so it's back to normal now, right? Thanks for trying!

Continue this thread — 2 replies

ibarrac#
Beautiful! Great job.

Lander used to be the first game I would program when I got a new computer as a kid. I remember writing it for the TI-99/4A, Commodore 64, and the Amiga 500 (in Modula 2). Your game brings fond memories of those simpler times.
Amazing what you can do these days with the tremendous speed of computation available on modern hardware, even with the js13k constraints.

artursapek2 replies#
Very cool and great use of webassembly. Bug report: if you get low enough in the last level and thrust upwards, the black smoke somehow mixes with the purple smoke outputs and they start instead covering the screen in black smoke.

https://i.imgur.com/vHOrBWm.png

s-macke#
I guess this is the problem I mention in my code here: https://github.com/s-macke/Interplanetary-Postal-Service/blo...

For the sake of optics I use wrong boundary conditions for the colored part of the fluid (transport equation).
The right solution would be to copy the density[]-grids and apply the wrong boundary conditions on them and then draw the image with it.

misnome1 reply#
I also had problem with the last level - on the several attempts I had left, after about 10 seconds the sim would seem to bug out and it looked like there was a very, very strong wind along the bottom, which looked like it was friction-pulling the rest of the play area so that everything was blowing fast to the left, leaving it (apparently) unplayable.

Good fun, otherwise.

s-macke1 reply#
Damn. I thought I have solved this issue. But why does it work for most other players?
cellularmitosis#
I ran into this as well. Here's a video: https://youtu.be/SomX22VGHHc

It doesn't always happen for me. Here, I had to play through the game several times before I could get the bug to trigger.

Load more comments