I know some games with JavaFX, but exist some effort to build a JavaFX game engine? Or a project like CRUDFX or JFXtras for games?
I was building an engine for games in JavaFX, but i feel so discouraged cause have no one with games background working with JavaFX.. But i'll terminate my engine soon!
I don't know of any project that has been started specifically to build a JavaFX-specific game engine, but there certainly has been a lot of interest in using JavaFX for games. It seems like a natural fit for JavaFX's strengths in graphics and animation.
There have certainly been a lot of JavaFX game demos from pac man clones to tank battles (a google search will turn up plenty).
There is also Michael Heinrichs inverse kinematics library for JavaFX:
Games are "super importants" to RIA technologies. Flash is very famous because of their games!!
True, but this has nothing to do with RIA technology. Flash games became hugely popular long before the term RIA was even coined. In my opinion, looking for or writing a game engine in JavaFX is reinventing the wheel. There are already several Java based game engines which could probably work with JavaFX, since it's all Java anyway, eventually. I've seen demos of JMonkeyEngine being used with Griffon, which is a groovy based API for building Swing applications. There is also Slick which is a 2D OpenGL game API. I'd first look at how I could use those with JavaFX, if possible, before even considering writing a game engine in JavaFX.
And on top of all that, if an engine already exists for Java, what does a JavaFX engine bring to the table? Declarative syntax? The only game related thing that might be good for is building scenegraphs, which these other API's already make quite simple.
Actually, JavaFX can be seen as a game engine in itself: it manages a scenegraph, you can easily do sprites, and even collision detection, you have a GUI for user information or settings, etc.
You can also plug in a physics engine like JBox2D or Phys2D, etc.
Just don't expect to do 3D games yet.
Philippe Lhoste wrote:Actually, JavaFX can be seen as a game engine in itself: it manages a scenegraph, you can easily do sprites, and even collision detection, you have a GUI for user information or settings, etc.
You can also plug in a physics engine like JBox2D or Phys2D, etc.
Just don't expect to do 3D games yet.
I was talking about an engine that brings methods and abstractions from the world of games, such as:
- Tiled World
- Character
- Enemy
-...
I was building a cluster of classes that allow this abstraction, but my skills and time does not allow me to move on! I hope one day to finish my project!
I am not familiar with existing game frameworks, but I doubt they have a concept of character or enemy, as they are more on the "business logic" end, and are not suited to all games (like Tetris...); they are easy enough to create and customize to your own needs.
Tiled world can be done with the Tile layout and you can scroll it with a ClipView.
Philippe Lhoste wrote:I am not familiar with existing game frameworks, but I doubt they have a concept of character or enemy, as they are more on the "business logic" end, and are not suited to all games (like Tetris...); they are easy enough to create and customize to your own needs.
Tiled world can be done with the Tile layout and you can scroll it with a ClipView.
I still don't see major features not supported, one way or another, by JavaFX.
You might have to do some plumber work to nicely support animated sprite, but it is not that hard.
Precise collision detection can be a little harder, perhaps.
And isometric background is indeed not really supported.
I don't see IA support in the list of features, so no character/enemy management.
Basing my remarks only on the list of features shown in the page you list.
Note: some libraries like this one or PulpCore can still have an edge on speed/smoothness/facilities.
I just wanted to make a point that lot of features needed to make a game are already there: load and display images, play sounds, timelines, effects, etc.
Philippe Lhoste wrote:I am not familiar with existing game frameworks, but I doubt they have a concept of character or enemy, as they are more on the "business logic" end, and are not suited to all games (like Tetris...); they are easy enough to create and customize to your own needs.
Tiled world can be done with the Tile layout and you can scroll it with a ClipView.
There was a Tile project from Josh Marinacci on kenai.com, I think.