Going to build 2.5d Game on Facebook by JavaFX , your advice?

Hello,

I’m going to start my first experiment in developing an online game on Facebook by javaFX. Most of graphics will be designed by 3d Max but for showing as 2D.

I’m still confused because i didn’t see any online games built on Java on Facebook until now , is it normal ? or developing online game on facebook by java is impossible ?

Kindly share your advice and suggestions and opinions with this type of experiment specially with Facebook Game App.

so it will shows if i’m on the right way or should go away from using JavaFX on developing the online game on facebook.

Java-in-the-browser is a world of pain - best avoided. The tech to use is HTML5/CSS3/JS with some sort of middleware library to make it less unpleasant.

Cas :slight_smile:

Thz alot brother and I appreciate your rich response . but can you mention samples/cases of pain problems of JavaFX with the browser ? specially with online games ? frankly i’m trying to be away from Flash as far as possible

Java is like a feeding frenzy for anti spyware and anti virus software on your browser, thats the main issue . Secondly its not really built to run that efficiently unless in an applet (I might be mistaken) because it uses a VM to run the code it has to have seperate dependancys that as usual make it a frenzy for security software flagging it.

Mostly it’s because users just have it blocked, or have an ancient version of it, or it just plain doesn’t work properly.

Cas :slight_smile:

Ops , sorry to hear that , really i adore Java , and i hoped to do my project using it , but fortunately i think i have to study Flash and action script now :frowning:

I’m also against the use of Java here. However remember Flash isn’t your only option.

WebGL offers the ability to run OpenGL in your browser. JavaScript is easy to learn and use. The DOM makes creating interfaces easy.

Unity Web Player is a plugin that will allow you to run your Unity projects in a browser.

yup i’m sad :frowning: , now i have to cancel an old project donye 30% :frowning: was for voice chat applet , depends on applet for login and separated window for chat

I think that i’ll go forward with Flash , Unity3D is great but i think it require me to know c# and i don’t like its pluing idea for the browser comparing to Flash

LibGDX can export to HTML5 I believe

OOh very awesome tool, but what about compatibility with all browsers ? and speed of loading ?

and really Does it convert all of jar (JavaFX) to HTML without losing any effect or any thing ?

http://libgdx.badlogicgames.com/demos/

What’s your opinion ? is it enough ? or still Flash is the easier and guaranteed way ?

I apologize for my many inquiries but as you know i don’t want to start and after passing long time i discover that i chosen the wrong way .

libGDX is independent of JavaFX. They know nothing about each other. I don’t think you’re going to get FX into the browser.
With regards to Flash, it’s dying and HTML5 + JS/JS-alts is better it seems.

Regarding JavaFX yup you can export it as embedded applet to the browser.

Frankly I dnno more about the news in HTML5 , but i know that you can build simple game using it , but what i’m talking about is online network game with lot of motions and effects .

An example for my game’s idea :
Warcommander , RedAlert and Farmvill

same Idea

Rephrase: you likely won’t get FX into the browser in any effective capacity. Applets are dead.
Unless FX has a JS export I don’t know about.

Article I found that may be interesting: http://code.makery.ch/blog/javafx-vs-html5/

Also, as for it’s capability, I’m not a web dev, but there’s this: https://www.google.com/#q=games+made+with+html5

Maybe you should check out some of the three.js examples before saying “simple”?? :wink:

Frankly awesome !! i saw very powerful applications done by HTML5 !!

the question here is how can i secure the code from being stolen by just one click in the browser :frowning: !!! ???

Not very easily (or well), but then Java code is quite easy to “steal” as well.

Some links though: https://www.google.com/#q=html5%20game%20obfuscation