Making a game with JBox2D

toucansam wrote:
Um I'm pretty sure you're not. Heres the svn repository:

https://jbox2d.svn.sourceforge.net/svnroot/jbox2d

and if you just want the jars, then here's they are (from the sourceforge svn browser):

http://jbox2d.svn.sourceforge.net/viewvc/jbox2d/trunk/dist/

I don't think things have changed too much from your end, its just extremely faster and uses much less memory


Awesome, thanks!

I was already hugely impressed with its performance.
There should be optimizations released every couple days or so 🙂
It worked, only had to change a few imports. I noticed it was a lot faster, thanks!

I am making really good progress on the game in a whole. I'm now happily importing shapes and enemies from Inkscape and it is starting to look quite allright.

Something entirely different; I hope some of the Java programmers can help me out: What is the best sound library to use for short, reapeating sounds. I'm using Processing for graphics and are currently using Minim for sound.

Also, there is a software version for people having problems with the OpenGL version:
http://blissfulthinking.nl/gamezero_software

The original, hardware supported version remains here:
http://blissfulthinking.nl/gamezero
Minim is actually a great sound library, and if you want short sounds use the AudioSample (I think that's what it's called, check the docs), which is made for short repeating sounds.

Also, great game!
Minim is very nice but the AudioSample class has a known bug with no fix in sight. Bits of sound can be left behind in the buffer when the sound is played more than once at the same time. Some people have the bug, some don't and it is reportedly related to drops in framerate. Anyway, it leads to annoying blips and pops of sound being played, even when nothing is going on.

When I have time I will probably try to use Jorbis which is basicly JavaSound with .ogg support.

Update:
Raycasting is in place and I'm now working on a node based pathfinding mechanic.

Pressing '0' , that is zero, during gameplay will toggle some debug graphics
very fun
so i kinda just die and have to reload the page. any fix to that? also i find sometimes it just freezes for no apparent reason and i have to reload the page again.
AddEventListener wrote:
so i kinda just die and have to reload the page. any fix to that? also i find sometimes it just freezes for no apparent reason and i have to reload the page again.


Stupid of me, I removed it from the HUD but didn't put in the HTML but you can reset the test by pressing 'R'.

As for the freezing, that could happen, its still not in proper running order. I am always interrested to hear what the Java console says in those instances though.

Do you have it enabled? You could by going to Java in Window's Configuration Screen then go to the advanced tab and somewhere there you can make it start every time you run something Java.

Thanks for trying.
thanks. i got to that room with all the guys and took em all out 🙂 I like dragging around the bits of... whatever that stuff is. dirt i guess.
so are you gonna actually make a game out of this with levels and stuff? right now it just seems like a good starting engine for the actual game

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