my dog learned polymorphism*
The moose likes JavaFX and the fly likes JavaFX games Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX games" Watch "JavaFX games" New topic
Author

JavaFX games

William Antônio Siqueira
Ranch Hand

Joined: Jul 08, 2009
Posts: 36
Hi!!!

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!

Regards


The answer isn't "Why", is "How"!
Follow me on Twitter - Speak portuguese? Check out JavaFree.org
Dean Iverson
author
Greenhorn

Joined: Aug 30, 2009
Posts: 20
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:

http://fxutil.netopyr.com/page.php?3

And several blog entries on using a Java-based physics engine in JavaFX games:

http://piliq.com/javafx/?page_id=729


Dean Iverson
book - blog - twitter
William Antônio Siqueira
Ranch Hand

Joined: Jul 08, 2009
Posts: 36
I had seen these blogs!!!

I was referring to a framework as G T G E: http://www.goldenstudios.or.id/

Games are "super importants" to RIA technologies. Flash is very famous because of their games!!

Regards
Dean Iverson
author
Greenhorn

Joined: Aug 30, 2009
Posts: 20
As I said in my original reply, I don't know of any JavaFX game engine project. Maybe it's an opportunity for you.

I agree, games are important. JavaFX could be a killer platform for game development as applet deployment continues to improve.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Dean Iverson
author
Greenhorn

Joined: Aug 30, 2009
Posts: 20
Gregg Bolinger wrote:And on top of all that, if an engine already exists for Java, what does a JavaFX engine bring to the table?


The ability to reach mobile devices.
Philippe Lhoste
Greenhorn

Joined: Oct 23, 2009
Posts: 28
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.
William Antônio Siqueira
Ranch Hand

Joined: Jul 08, 2009
Posts: 36
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!
Philippe Lhoste
Greenhorn

Joined: Oct 23, 2009
Posts: 28
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.
William Antônio Siqueira
Ranch Hand

Joined: Jul 08, 2009
Posts: 36
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'm speaking about a API like GTGE:

http://www.goldenstudios.or.id/products/GTGE/index.php

GTGE encapsulates some game programming techniques, so you just need worry with your game not with technical aspects from the language used!

Philippe Lhoste
Greenhorn

Joined: Oct 23, 2009
Posts: 28
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.
Jiri Goddard
Greenhorn

Joined: Aug 21, 2007
Posts: 21
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.


http://dredwerkz.ic.cz
vaibhav mishra
Ranch Hand

Joined: Jun 18, 2008
Posts: 168
but it is dormant for a long time , I last checked 2 months back and there was no update since January.


SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX games