4 ms·
It might work for simple games, like the one in your example, but add a serious physics engine and sprites in there and too much creativity and such frameworks
by bermanoid 15y ago
It might work for simple games, like the one in your example, but add a serious physics engine and sprites in there and too much creativity and such frameworks become more pain than help.
Funny that you should mention physics engines and sprites...have you ever played the Chrome version of Angry Birds? Sure, maybe it's a simple game, but it's hardly a get rich quick fart app.
Are you aware that though it's ultimately a Javascript app, it was built using the Forplay framework (http://code.google.com/p/forplay/ http://code.google.com/p/forplay/), which includes a (very slightly modified) version of JBox2d (the Java port of Box2d) for physics, compiled down to JS through GWT? See http://code.google.com/p/forplay/source/browse/#svn%2Ftrunk%2Fcore%2Fgwtbox2d%2Forg%2Fjbox2d http://code.google.com/p/forplay/source/browse/#svn%2Ftrunk%... - that's almost exactly the JBox2d trunk, with a few modifications because of a couple of things that GWT doesn't allow (reflection, for instance).
I assure you, we did not have GWT in mind when porting Box2d to Java, so there are no special optimizations for it or anything, we've always just targeted pure Java - GWT didn't even exist at the time, and even once it showed up, I was so convinced that it could never run fast enough for physics that I didn't even bother to try. You can see the results yourself, most of the demos (other than the stress tests, which are supposed to be slow) run quite well for me on recent versions of Chrome, Safari, and FF: http://gwtbox2d.appspot.com/ http://gwtbox2d.appspot.com/
- tudorizer 15y ago"Chrome version of Angry Birds", "Chrome version" was not built for all platforms from the beginning. Neither was the normal version of Angry Birds. I highly respect GWT, but it's far from smooth on my mobile.
- gren 15y ago"Chrome version of Angry Birds", "Chrome version" was not built for all platforms from the beginning. > Well mine neither.