Hi, I was wondering is there some “best-practice” open source projects that are good for learning java game development?
In particular 2D games.
Hi, I was wondering is there some “best-practice” open source projects that are good for learning java game development?
In particular 2D games.
no ;D, there are no best practices
I found the Google Play example games quite nicely engineered.
game programming is very often not about the best practice
and without stating a specific problem, its a broad topic
on the Java4k.com site you will find many project with sample code.
These projects (although harder to understand since its a size-matters competitions) should give you some good ideas about programming.
I would strongly disagree. A 4k game is like bachelors thesis on a napkin in font size 2. D:
Not to mention a total lack of OOP in 4k games. Yeah, don’t go there. Depends on which library you’re going to use if you want an example. Obviously minecraft if you’re using lwjgl, and I would look at https://code.google.com/p/steigert-libgdx/ for libgdx.
Shameless plug :
It has helped 2 people so far
It is using java2d though. But it should give you an idea…
matheus23 Thank you
Was digging into Markus Persson’s metagun for a few days, and it seems to have very similar design, while being very concise and easy to understand.
Exactly what I was looking at, before writing TinyWorld
The problem is, that he uses some rather ‘strange’ stuff for rendering sprites, which makes the code much harder to understand in the beginning, but that’s only the rendering, not the game logic.