Java game engine for 2D RTS game in 2019 - java

I would like to ask you for an advice, what would be the best approach to create a RTS game in Java nowadays. I have some experience with JavaFX applications, but I guess it is not exactly inteded for such things and it is much better to use in "office" applications and there are not so many examples of games created using JavaFX. Or am I wrong and it can be used for that purpose?
I know there are such engines like Unity or Unreal, but I would like to make something like this in Java. Should I go for LWJGL or something like this in this case? I think that 2d engine should be enough for what I would like to do.
What would you recommend for that? Thanks for your suggestions. I know there are some topics like this, but I would like to know what is currently on top.

maybe this is what you are looking for: https://github.com/AlmasB/FXGL
You mentioned Unity and Unreal and this is certainly not comparabel with that. But in your headline you ask for a 2D engine and I think it fits in this category.

There's the java based (not specifically JavaFX) libgdx (https://libgdx.badlogicgames.com/), which could be adapted to JavaFx.

Related

What language/classes do I need to make a simple card game?

How should i go about making a simple card game? (e.g. solitaire) I am familiar w/ terminal programs in java and c/c++, but i am not familiar w/ the graphical side. Is openGL too complex for a simple card game? I guess ultimately I'm asking where do I start? What language & functions do I need?
JavaFX 2 or Qt are really easy to start with, just look at the tutorials.
Netbeans comes prepackaged with a GUI Builder. If you like drag and drop and can write your own java listeners behind it, this is not a bad option.
http://netbeans.org/features/java/swing.html

Any good suggestion to animations with SWT/JFace

I'm developing a desktop application using java + SWT/JFace, which I'm not very familiar. The program need to show some pictures presenting the program's progress like this.
Sorry for my poor English, I'm not sure whether it's suitable to use the word "moving", actually I mean that the diagram is changing like Flash when an event occurs. I'm considering making some flash movies to play, but it seems difficult as I need to add third-party jars and I'm not good at flash. Is there any better way to doing work like this? I need your suggestion.
Thank you and sorry for my poor English again if I made some English mistakes that troubled you :)
You can use java2d and the awt-swt bridge or there is a framework called Timing Framework which works for swt and swing.
probably you need a gif embeded in your window. java cannot paly any animations unless you have series pictures and play them one by one very soon.

How to implement animation into a JFrame

I am used to making web pages with animation using JQuery. I am now making a Java Desktop Application using Netbeans and Netbeans' Swing and without any animation it's looking pretty plain and boring.
Are there any resources I can use for a guide to implement animation into my program?
Does anyone have suggestions on what method to use?
Edit: I am not interested in something I'd have to buy.
A good starting point would be Filthy Rich Clients. Both the principles and the framework code may be helpful to you.
If you're looking for a nice look and feel then Substance might be a good way forward. It's not over-the-top animated or anything like that, but it's got a lot of skins and some in particular look very nice.
Many thanks to stemm who pointed me in the right direction.
I decided to use JavaFX (JavaFX 2 to be exact)
Here is some resources I am using:
http://download.oracle.com/javafx/
http://download.oracle.com/javafx/2.0/swing/jfxpub-swing.htm

My first game: Python using pygame vs. Java using lwjgl?

My game would be a simple 2D tower defense type game. It should have some animations and sounds. I've only learned Java so this seems like a huge plus for choosing that option. But I'm fairly new to programming so i suppose it wont be a huge problem to switch.
From my limited research, either Python using pygame or Java using lwjgl seems to be best suited for my kind of game.
What are your thoughts? Benefits of one over the other? Other suggestions?
Java + LWJGL is very low level and you'll have to write a lot of the sound and animation code yourself. A better choice would be Java + Slick2D (a 2d library on top of LWJGL). You can find it at http://slick.cokeandcode.com
A benefit from Pygame for the kind of game you want to do is the Python Pygame Tower Defense project that could be a pretty good tutorial for what you want to do, isn't it ?

Open source 3D render engine for Java

Which are the Open source 3D render engines for Java?
I suggest jMonkeyEngine, it is great.
jME (jMonkeyEngine) and here are some game demos
Just for rendering, how about Sunflow ?
(source: sourceforge.net)
Also, it should be possible to run other renderers that have commandline
interfaces, like Yafaray or Pixie from Java.
Also, Ogre3D is interesting for real time stuff.
Have a look at the DevMaster 3D Engines Database.
I would recommend Ardor3D, that's the kind of JME number 2, developped by the original authors of JME.

Categories

Resources