I know applets are dead, but is it possible to create a desktop application that is not platform specific? In other words, instead of having a Mac OS X .app file, a Windows .exe files, etc., is there a way to wrap up my sketch as a single cross-platform .jar file? If other Java programs can do this, why not Processing?
Is there a way to look at the javascript version of my PDE that processing.js spits out? It seems to be very difficult to debug Processing.js sketches if they work fine in regular old Processing. (It makes me wonder why applet export mode isn't still available for those who want more portable sketches with the full benefits of Java.)
I'm working on a little platformer game, and in PJS objects appear to be bouncing off of invisible walls - a behavior that does not appear in Java Mode. I suspect the problem lies in how Javascript is (mis)handling the collision code, but I'm just not seeing it:
PVector collisions(PhysicsThing thing) {
PVector force = new PVector(0,0);
Circle c = thing.circ;
for (int i=0; i < segments.size(); i++) {
LineSegment s = (LineSegment) segments.get(i);
if (PVector.dist(s.a, thing.location) < cellSize*2) {