Shockwaves multiplayer

Hi - just wanted to show off a new game I made using jbox2d:

Shockwaves
http://www.tossplay.com/shockwaves

The game is a multiplayer flash frontend, with a java gameserver - all physics are done on the server, using jbox2d. We opted to have all the physics on the server mainly because of lag, the game needs to be pretty precise to be fun.

So, check the game out, and thanks for the great library!

If any of you have comments or questions, feel free, I'll do my best in answering .-)

best regards
Jens
how do you do the physics on the server?
There is a java socket server running to handle player connections, pairings and games - a separate socket server runs the game engine. This game engine uses jbox for the physics, each frame (the fps is 20) the world is updated and the current position of all elements (and collisions) are sent to both clients, and the flash clients draws the scene (and tweens the postions from the previous frame). All input through the flash are sent to the gameserver - when a bomb is clicked a timer is set, and after some milliseconds, the bomb detonates.

A force is calculated based on the direction and distance to the bomb for all other worldobjects in range, and applied to each, thus moving them away from the bomb.

jbox handles all the physics, ie explosions, collisions and posisitions.

Hope this gives you an idea of the setup, otherwise feel free to ask some more.

btw. - did you (or others) play the game, and if so, what is your impressions?

best regards
Jens
no one to play against. so haven't played yet.
sketchbookgames wrote:
no one to play against. so haven't played yet.

You can open two browsers and play yourself.
Interesting game idea!

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