Lurker News

Comments (127) 36 threads

Earlier comments
codeulike1 reply#
This is brilliant.

One of my favourite games growing up was Thrust on the BBC Model B. Had directional velocity and towing mechanics, which was pretty good for the time.
https://www.youtube.com/watch?v=Dt44PEIWBRg

s-macke#
I played this game too. And I was close trying to implement such a game. But then my fluid grid would be much much larger and the game much slower. I thought about adaptive grids. Fine on the viewing screen and coarse outside. But to implement this would have taken me too long for this game entry.
blunte7 replies#
Am I the only one experiencing a game-breaking bug/behavior?

The D thrust gets stuck on if you press it once, and randomly the W comes on and gets stuck too.
Also, after the first ship, every additional ship starts with W and D thrusts on, permanently.

sokoloff#
Doesn't happen here. (MacOS Chrome 68.0.3440.106)
s-macke#
This happens to me when I use the Internet Explorer. My best guess is, that the problem is, that the game tries to use all the computing power available. The game does use the "setTimeout(Loop, 0)" trick to accomplish this. Usually there is no problem if the event queue is a queue. Then the setTimeout function is the last one in the queue and keypresses are handled first. If the events are handled differently, for example by using a stack, such games are in big trouble.
luckettpat#
Yep, happening to me as well - MacOS and Chrome.
sliken#
Doesn't happen to me with linux + chrome. Just finished all 8 levels.
stevenhuang#
Keys get stuck for me too. Windows, Chrome 68.0.3440.106.
0xfeba#
I had a similar issue with FF. IT looks like the canvas kept losing focus and FF was interpreting the letter keys as search terms sometimes. I believe when it looses focus with the keydown caused the sticking issue.

No issues in Chrome.

wongarsu#
Had the same issue with Windows 10 and Chrome, but no problems with Firefox
miltondts3 replies#
Fantastic game! Can anyone recommend any books/courses on how to make simulations/games like this?
slavik81#
"Fluid Simulation for Computer Graphics" by Robert Bridson would be my suggestion for getting started with grid-based methods. The SIGGRAPH course notes on his website are very similar to the 1st edition. [1] It's no longer the state of the art (which is probably APIC), but the new methods are all based on the same fundamentals.

Particle-based methods like Smoothed Particle Hydrodynamics (SPH) are simpler to implement and are more intuitive than grid-based methods, but they're also harder to analyze mathematically. SPH is the method used by PixelJunk Shooter. "Fluid Simulation for Video Games" by Michael Gourlay is mostly about a different fluid technique (vortons), but does include SPH. [2]
[1]: https://www.cs.ubc.ca/~rbridson/fluidsimulation/
[2]: https://software.intel.com/en-us/articles/fluid-simulation-f...

bmillare#
This game was brilliant fun, just got over 12k after playing it over and over again. It really reminds me of white water rafting, you really can move very efficiently, quickly and with little thrust if you properly read the course. Simple game, but great depth.

Load more comments