1 decade ago by korzen303
Hi,
I am working on a small old-school multiplayer shooter using Box2D based on the physics example.
So far I've got a simple java websocket servlet running JBox2D 2.1.
On the client side there is a Box2D.js 2.1 used for now only for particles and raycasting.
Also implemented fallback to flash TCP if websockets are not supported.
Open many browser tabs to see the final effect.
Don't forget to aim using mouse or a finger on phones/tablets;)
Should work on:
latest desktop Firefox, Chrome and Opera
mobile versions of Firefox, Opera and Safari.
also works via flash fallback on Android Browser, very laggy though
(Some browsers require to manually enable the websockets
UPDATE
I gave up on multiplayer idea. Singleplayer version HERE. May get back to the idea though.
I am working on a small old-school multiplayer shooter using Box2D based on the physics example.
So far I've got a simple java websocket servlet running JBox2D 2.1.
On the client side there is a Box2D.js 2.1 used for now only for particles and raycasting.
Also implemented fallback to flash TCP if websockets are not supported.
Open many browser tabs to see the final effect.
Don't forget to aim using mouse or a finger on phones/tablets;)
Should work on:
latest desktop Firefox, Chrome and Opera
mobile versions of Firefox, Opera and Safari.
also works via flash fallback on Android Browser, very laggy though
(Some browsers require to manually enable the websockets
UPDATE
I gave up on multiplayer idea. Singleplayer version HERE. May get back to the idea though.