Wrote a GWT backend, almost complete. It allows you to deploy your apps as pure javascript + WebGL, no need for a Java applet. GWT limitations apply. Blog spam with link to (lame) demo game http://www.badlogicgames.com/wordpress/?p=2308
Well - it works! Quite remarkable. I’m itchin’ to see something big done like this. If only it didn’t involve learning Javascript :cranky:
Cas
Why would you need to learn javascript?
Ah of course, I forgot that’s what GWT is supposed to do!
… I don’t trust it of course
Cas
Oh nice, really impressive that the demo runs at a solid 60fps, WebGL seems to have really matured nicely. Could be the best thing ever for writing web games in Java.
In the absence of WebAL what’s the sound support like? anything usable for modern games?
What plans do you have for supporting browsers that don’t (will never) support WebGL? Maybe something like a Canvas fallback? but suppose that’ll be too slow for 3d, could use a Java Applet fallback for those I guess.
For sound, there’s Sound Manager 2 which abstracts the html5 audio tag and uses Flash as a fallback. Not yet sure about it’s capabilties. It looks like audio is the biggest issue on the web at the moment.
All the major browsers except IE support WebGL now (with some caveats, e.g. Firefox blacklists some graphics cards). An applet fallback for IE is an interesting idea. Another option would be Google Chrome Frame, haven’t tested that yet though. Given our API, Canvas is sadly not sufficient and i’d rather not start introducing different profiles. We’ll see how my bet on WebGL/GL ES 2.0 turns out in the end.
Talking about sound, does the Bob doodle demo have sound? I have no sound here. FF10 win7 jdk7.
No it doesn’t, i’m implementing sound in the GWT backend as we speak. Couple of new games have already been ported (see updated blog post). Pretty neat
Truly great!
And things just work. I will now have to dig up my 2 little test and try to convert them. I am really happy that I chose libGdx for the last project.
Great! 8)
[quote=“badlogicgames,post:6,topic:38439”]
Unless you consider that perhaps mobile browsers aught to be considered major these days (at least, they can’t be ignored).
Well, libgdx has an Android backend, it would be silly to have your app run in the browser there. iOS doesn’t support WebGL in the browser (save for some hacks no normal user will do). Rumors have it that Apple will allow WebGL for ads (wtf indeed). Windows Mobile or whatever they call it now is definitely never going to have WebGL/OpenGL ES.