JavaFx 2.0 Game Engines / Frameworks - How will JavaFx 2.0 change Java games?

I understand that JavaFx 2.0 exists only for a short time, but was hoping that someone would know about the FX 2.0 game engine (or even such a project in open source development)? I could not find one - so if you please point me in the right direction.

I am also wondering how JavaFX2.0 will change a java game program. From what I read and the little experiments I did, I can definitely say that it is much nicer to enter the code. And I believe that it runs on a faster graphics engine with hardware acceleration than regular Java swing or awt based. But is it enough to support the entire gaming environment of any complexity?

+6
source share
2 answers

JavaFX is great for simple browser / 2D games - areas where Flash is currently the most common. Causes:

  • Great performance for 2D applications (good use of hardware acceleration under the hood)
  • CSS skin is very easy - web designers will love it.
  • The new JavaFX 2.0 API is very useful from pure Java (or other JVM languages ​​such as Scala, Clojure)
  • Cross platform so that it can reach the maximum possible audience

This is hardly suitable for complex / high-performance 3D games where you need a suitable OpenGL engine, for example jMonkeyEngine .

I think that the jury is still aloof from games on the middle ground (shooting games, third-party role-playing games, RTS games, etc.). These games do not necessarily need a full 3D engine, but they need good, smooth graphics performance. I suspect JavaFX will be good for them on modern hardware, but I highly recommend making a quick prototype to test the performance that meets your requirements.

+16
source

javaFx is nothing more than a GUI toolkit, such as Swing, but with some additional features. You can already make the right game engine in javafx node. Here is a dome showing it.

http://www.java-gaming.org/topics/lwjgl-javafx-integration/27801/view.html .

But this does not solve the problem of blocking the mouse for first-person games.

+2
source

Source: https://habr.com/ru/post/908304/


All Articles