2D Engine

Hello community,

I am currently working on a random generated tilebased 2D RPG, so as I want to put some technical effort into it like bump mapping, shadows, lightning, day/night cycles etc. I am not sure if Slick 2D is the right choice to develop the game. I have read, it is hard to render such things with Slick cause the render is not that good and slick is also not so easy to use with openGl I dont now if its true though I have never tried it. Well a chunk is 32 x 32 and 9 chunks can be rendered at the same time due to the screensize. Well for so many things to render, chunks, effects, player… etc. is slick the right choice? I am planning to release this game so it needs to run smoothly :slight_smile: I hope some of you have knowledge about “bigger” java projects and what API is the right one for these things

Slick2D is a poor choice if you want to do any real graphics programming, like shaders, advanced particles, FBOs, etc.

Of course you can just use straight LWJGL, but you’ll waste a lot of time debugging GL boilerplate and reinventing the wheel. Instead I’d suggest a library like LibGDX to handle some of that for you. See here:

If later you decide to look “under the good” then it won’t be too hard to write the GL code yourself since you’ll presumably understand it all by then.

Ok I have a taken a look on LibGdx and it seems to be pretty good, but I have not found that much tutorials for it. Well I am not planning to release this game for any phones at all just Windows, Linux and Mac computers. I have tested a tutorial but it was too old so that I had syntax errors and so on its kinda hard to get into it I think. Well Slick2d will give me performance issues I guess with all that shader features etc. right? And Lwjgl alone is like reinventing the wheel I have read ^^ well maybe stay with slick? I dont know… do you have some decent tutorials on LibGdx and what are my main advantages with LibGdx. Thx

The wiki has all the basics you will need.

Also, check out Dermetfan’s tutorials.

If you just want to release for computer, then that’s fine. There is hardly any difference in code between android and pc. Check out the wiki, it goes over how to setup and release for different platforms.

There is almost nothing to learn in Libgdx. You can basically use it for rendering texture with spritebatch. I mean… What’s there to learn? It is already made for “easy” use. I didn’t really look at any libgdx tutorials. You can easily learn it just by looking at the code. You should watch the how to install tutorial in libgdx wiki page. (22 minutes tutorial)

The best source for learning material, for LibGDX, are the tests.
Definitely get the test and sources, whatever problem You might have, there is a high chance of a test already covering it.

Edit: Location aswell:https://github.com/libgdx/libgdx/tree/master/tests

Im using libgdx, and I found it pretty easy to get a handle on.