DS3 - a little shooter

Just a little Galaga style shooter I put together in a couple weeks for a rapid prototyping session at Shmup-Dev. In fact, I'm not the only entry there using Box2D 🙂

The game really only makes use of collision detection, especially useful for the bullets.

Download here. There's a bit more information here, on my blog.

Image

Image
While Box2D is somewhat overkill for simple collision detection, it's really good at it and much better than anything I could come up with on my own. The collision resolution, rigid body dynamics, and joint constraints are a nice bonus. 😀
I find that when you have them, you might use them, and get richer gameplay for nothing.
pTymN wrote:
I find that when you have them, you might use them, and get richer gameplay for nothing.


I agree completely. I've been having a ton of fun working JBox2D into my own "shmup" engine, and I've got some grandiose plans for a game that uses the physics engine a lot more.

Bill
When creating a very simple, arcade-style game, it's worth being cautious of throwing in physically accurate behaviors, because that is likely to reduce the predictability and learnability of the game. It might sound counter-intuitive that realistic behaviors would be unpredictable, until you remember Chaos. Compare Pachinko to Tetris. Both are popular, but for different target audiences. For many people, the appeal of arcade games lies in learning how to be in control of the outcome of a system, but physical systems are often too chaotic.

A friend of my wrote a rant about Breakout clones discussing this topic:
http://interactionartist.com/gameaday/?p=4

Box2D's collision detection is indeed fantastic even for arcade games, and better than anything I'd be likely to write on my own. I have no objection to how it is used in DS3. Just remember that Box2D is not a silver bullet for making fun games.
shaktool wrote:
Just remember that Box2D is not a silver bullet for making fun games.

I think that's a given, though I suspect a lot of people fall into this kind of trap. Same can be said for HD graphics, and bloom filters 🙂

For instance, I don't think many would have enjoyed Donkey Kong if Mario jumped with "realistic" physics. In the same way, I move the ship manually rather than rely on Box2D because I just can't stand inertia*. It's very difficult tuning movement so that it feels "arcade". Brings to mind a bit the selective use of physics in N. Nice to have an engine to fall back on when sliding down a wall, but when making a jump a predictable arc might be best.

Bill

*I'll try to head off the argument here, some will say inertia is ok (even good). Personally, I've heard many complaints about inertia in a shooter, never any requests to put it in 😉

Original thread: https://box2d.org/forum/viewtopic.php?t=1327