I am looking to put a jMonkeyEngine game I am developing into the browser. If you look at http://agar.io or http://diep.io for example, you simply visit the webpage and the game starts. What is the recommended way to do this with jMonkeyEngine?
I have looked into applets, however there seems to be no clear instructions for them (and they are deprecated and will be removed in java 9?). I tried experimenting with java webstart, but when my browser visits MyGame the browser simply tries to download the file rather than actually doing anything.
In other words, anything pointing my in the right direction and giving me a few basic instructions would be great.
Okay, but that doesn’t help me to actually solve the problem I have, of getting a JME game working in the browser. Could you be a bit more specific on how “new html5 technologies” will get a JME game working in the browser?
Even something like pressing a button in a browser and having it open up an OpenGL window would not be a bad second-best.
Currently there is no way to use JME to develop browser applications. Webstart is only way to go as far as I know if it’s not yet deprecated as well. And webstart basically is “browser downloads file and then starts it outside the browser”.
Well… Mature is a weird term for gwt. It’s been very used for web apps like 5 or 6 years ago but now it’s kind of a dying project…
It was made by Google but they handed the project to the community when they started to focus on angularjs… Since then the cool kids lost interest… But still a pretty solid technology IMO.
Only for testing. JVM nowadays require trusted signing to run without adding website into exception list. And it is not for free afaik.
The skinny is that applets and webstart are the worst parts of java. They caused so much security issues, that they should be disabled. I was surprised that they latest as long as the did.
These days most browsers support is far more consistent form of js+otherstuff all now under the html5 banner. For browser games, its the way to go. Right tool for the job. jME is great but not for browser games. There are some good game libs /“engines” for js as well. Well at least the last time i looked around.
Oh and many of my unity friends have found out how poorly doing anything but direct html5/js works for browser. Basically unity games can cross build, but in practice it doesn’t work that well.