Simple 2D game engine

Hi all.

Apart from the well known engines which also support 3D - I wonder if there are any lightweighed, simple, fast
2D only engines which features some basic things like :

  • Sprite ( animation )
  • Collision detection
  • Tiled Layer functionality

Doesn’t need to support any sound, physics or 3d features. My aim is to write some simple java 2d applets for
fun and I dont want to re-invent the wheel.

Any help,hints and links are appreciated.

Thanks in advance.

Regards,
benny!

GTGE does this.

http://www.goldenstudios.or.id

Alternatively, you could look at Slick, but it does not provide collision detection or sprite management out of the box (yet), but there are sample games using this already.

http://slick.cokeandcode.com/

If you’re intending to work in Applets, Slick isn’t a great solution.

Kev

@Eliwood:

Thanks for the links. I will try GTGE next week and do some performance tests
and will post them here.

@kevglass:

Thanks for pointing that out.

Check out this API http://developers.sun.com/techtopics/mobility/midp/articles/game/. It is part of J2ME, but it seems to be simple and it covers some good basic boiler plate things. It might make sense if this were part of the Standard Edition as well does it not?

Has anyone taken a look at this before? What do you think of it?

By the way, what is lightweight for you? How many KB does the framework/engine JAR(s) have to be in order to meet your criteria?
On that same note, what is fast for you? How many physics objects etc…? What type of framerate would you expect and on what hardware?

I personally believe (or hope may be a better word here) that Stencyl (check out Eliwood’s signature) will be a great solution to create 2D games. The beta is due to be release in April this year, so not to far away! Although, this may not be as lightweight as you desire.

Definately. This would be all I needed atm. Would be nice to see those features in the standard
edition as well.

Ok. The term lightweight might be mistaken I bit of mine. I wanted to point out that I just needed
the basic function ( like the one you mentioned provided with MIDP2.0 ). The amount of kilobytes isn’t
that important for me.

Physics arent important for the games I intended to write ( very basic cusual games ) - and the frame-
rate should be something around 40 on a standard pc.

Ja. This might be not as lightweight as I wanted - but nevertheless, thanks for giving the link. Didnt see
it before. Might be of some interest in future - so I will keep an eye on the development.

Again, thanks for answering …

Does it possible ti use MIDP classes into normal java application? and if yes, how :wink:

@Oss117:
AFAIK is it not possible or in other words the MIDP is a special profile for mobile devices
and it’s not integrated in the standard edition.

@topic:
I found this project you might be interested in it - didn’t test it as it is still in development
and has some bugs in it - but it might be worth keeping an eye on :

http://www.volny.cz/molej/pstros/index.htm