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
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.
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.
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.
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.
"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...
One of the prices is the book "HTML5 Games: Novice to Ninja" [1]. However the best way to learn is to read other code. Look at the js13kgames entries [2]. There are more than 1000 games entries. All with source code.
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.
Comments (127) 36 threads
Earlier commentsOne 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
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.
No issues in Chrome.
https://github.com/s-macke/Interplanetary-Postal-Service/#fl...
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...
[1] https://www.amazon.com/HTML5-Games-Novice-Ninja-Create/dp/09...
[2] https://2018.js13kgames.com/entries
All comments shown.
Couldn't load more comments. Check your connection and try again.