Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Game Engine [closed]

Does anybody know any good 2D game engines for Java? I'd like one that at least tries to keep up-to-date. I tried using JGame, but it didn't have the flexibility I required. I tried using Slick2D, but it doesn't offer an easy solution for collision detection. Instead, most people suggest you loop through all of your entities and check if you entered another object that way, but O(n) seems like a really, really horrible way to go about that when you plan on having several enemies, boundaries, bullets flying everywhere...

Also, the creator of Slick2D hardly ever updates anymore, a lot of the tutorials in the Wiki aren't even completed. I'm not blaming him, I understand what it feels like when you don't have time, but surely there's a framework out there like what I'm looking for?

like image 257
ShaneTheKing Avatar asked Jan 07 '11 16:01

ShaneTheKing


2 Answers

The Lightweight Java Game Library sounds very interesting. I've never used myself, but they have a nice list of projects using their engine, and from what I'm quite sure I saw in their files, the Revenge of the Titans game uses this lib.

The Slick lib also seems interesting, it works on top of LWJGL.

like image 109
Valentin Rocher Avatar answered Oct 12 '22 05:10

Valentin Rocher


I only know 3 2D Java game engines: the aforementioned Slick and JGame, as well as GLib (theglibengine.wordpress.com). The last one, GLib, is fairly new and rather buggy but it handles all collision detection for you. Have you considered GameMaker(yoyogames.com)? It's rather good, has a powerful free version, and requires no programming for most games.

like image 32
DaedalusUsedPerl Avatar answered Oct 12 '22 03:10

DaedalusUsedPerl