libGDX - What about that?

Hi lads! :slight_smile:

J0 speaking in newbie question — talk about newbie, I’m here to ask about libGDX, in a very… Let’s say newbie way.
I was actually wondering what libGDX was. Let me explain.
I’m currently coding my second java game — something between an RPG, a tower-defense and a puzzle game.
I have never used any extension. My first game and all of my attempts and experiments were mostly coded using swing for the graphical part.
Naturally, I’ve been working on my new project using swing. I have by now nearly finished the core part, and by that I mean everything that proceeds during a game session, as well as the graphical side of my ‘puzzle’ part and of my main menu, the two of them using swing of course. It has now been a few days I started working on the ‘RPG’ part. I’ve set the vectorial movements, the collision framework, etc… Actually, it should theoretically work fine, clean and everything. But — here’s the thing — the graphical part does not follow my expectations. :persecutioncomplex:
It seems to me that I came to the limits of coding a game’s graphics in swing. Maybe I have too much running everywhere, I’m not sure, the fact is that the graphical part I started working on just does not fit.
Images that should be drawn stuck together get separated on certain frames.
Some frames have trouble loading.
Some objects get blurry and move around while they should remain calm. ::slight_smile:
You can trust me on this one: nothing in the code sounds wrong. All the object positions, images, movements are very clearly defined and their access is not a trouble. Actually, even the console gets it better than swing.
So yeah, I basically need to move on to something else than swing. At first, I thought about AWT, but then I realized that, as swing was more recent, that should logically mean that if it can’t do it, AWT won’t be able to do it either. ???
So I thought, hey, how about I learn a little about libGDX? I mean, I’ve heard of it quite a lot around here, but I never really got interested in it. So here are my few questions regarding libGDX, and, remember, we’re in the newbie tab :wink:

  • Would it be possible to have an application working part libGDX / part swing? Can you make a libGDX component show up in a JFrame?
  • Would libGDX be faster and/or more efficient than swing?
  • Would libGDX be adapted for a top-down RPG-like game?
  • Would I need to rewrite my procedural part for collision detection, positions, or can all that be kept?
  • How difficult is libGDX to understand to someone who never dealt with anything else than swing?
  • And, most importantly, where would you recommend me to look for for easy libGDX tutorials to get started? ;D

Thanks a lot for having read it all through, I realize it’s quite a long paragraph I wrote here 8)

Good evening folks!

J0

EDIT: Or maybe should I try to have a look to JavaFX? Would that be better in terms of performance than swing for a 2D game?