Jump to content
  • Advertisement
Sign in to follow this  
AlexUser

What rendering tool to use

This topic is 767 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

 I'm making a game in Java. I'm using JPanels and some other shapes to render my stuff. The problem is that the drawing and loop are not the best for games, sometimes I see the performance drop a little. Thanks to my bad programming habits, I didn't separated the logic of the game from the rendering stuff, so now I have thrown everything away.

 

I am going to make the game from scratch again, but this time I want to do things correctly. 

 What tools can I use to render my game? [2D Game, rendering sprites] 

 And the advantages of using that specific tool?

 

 

I have found several tools, but I still feel confused and afraid to invest my time without asking for opinions first.

 

Share this post


Link to post
Share on other sites
Advertisement

If you want something low level, you can take a look at LWJGL bindings for Open GL. Other options are LibGDX, as suggested above, or Slick2D. As far as I know, both of them use LWJGL underneath.

 

About the advantages of each tool, I'm honestly not sure. All of them are good options for a 2D game, I would just look at the examples and try out anything you think you would be comfortable coding with. A quick search in Google and Stack Overflow shows an order of magnitude more results for LibGDX than Slick2D, so that's a point for LibGDX.

 

If I were to make a game with Java, I would probably start with LibGDX, but my only reasoning is that I've already used it and is very nice and seems to have a bigger community that the other options I'm aware of.

Edited by Avalander

Share this post


Link to post
Share on other sites

Yeah I started making games in Java after reading +500 pages of Head First Java (and ~1.5 year of previous learning on C and messing with Unity), and soon realized that Swing is not meant for games too much. Now I'm using libGdx, made a Blackjack game with dealer and split and stuff, then a local-multiplayer TicTacToe. Now I'm trying to make an Isaac-ish 'thing' but I'm kinda stuck.

 

But yeah my point is that libGdx definetly has some power in it! And when it comes to learning libGdx itself is not that big of a deal at least for me. Besides the documentation, tutorials and Questions&Answers about it are pretty solid and abundant like Avalander says.

 

I found myself stuck more in how to structure my game (where to handle Animations and Input, "what should go really in the Player class?", "is an enemy entity collection the way to go?") than learning libGdx 'shenanigans'.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!