+ 3

How do we make games in java?

Please i need help on how to implement a simple 2d game un java. I Know the basics of java and i have a good background in game programming in python. Can someone guide me for me to get started? All answers are welcomed

7th Mar 2018, 7:28 PM
JustCodeMore
JustCodeMore - avatar
3 odpowiedzi
+ 2
There are various Java game engines and libraries such as libgdx, lwjgl, and Slick2D (which is a wrapper for lwjgl essentially) that you can use. I personally really like LWJGL or Lightweight Java Game Library since its fairly lightweight and has many nice features. Although if you're looking to do it from scratch you'll need to setup a window and canvas to render to. There are of course many ways to do this but one approach (which I would suggest in this case) would be to use Java Swing along with the AWT package. Swing provides everything you need to setup a window and AWT has a canvas class and everything you need for basic rendering.
7th Mar 2018, 8:24 PM
Lewis
Lewis - avatar
+ 1
thanks you guys
8th Mar 2018, 6:54 PM
JustCodeMore
JustCodeMore - avatar