Let's first describe the project. The idea was to provide general classes to construct different type of game. So we start thinking of things that are common to every 2D game. Our first requirement was to make it easy for the user to design new game. So we decide to create classes that handle sprite, scrolling, design of playground, score ...
Next, we created a game with our
API. We made a Mario-like. We tried to put everything together and it works
pretty well !
Taste some screen shot:
There is the source code in .tgz format
You can view the javadoc of the API
Tutorial : how to create new game with the API
We wrote classes (that are sub-classes of the API). There names begin with the word "Test". In order to run the game you have to do "java TestGame". You can easily draw new map of playground with "java EditMap".
The goal of this little game is to
reach the end of the map (in fact door). To make your way, you have to take
care of the monster (hit the button A and fire the monsters). Use the arrow key
to move left and right and to jump. Your score increase as you kill monster.
It's just a demonstration not a full
game, you can see here what you can do with the API.
It's your job to do new Sprite, new
level and new game. You can do pacman, shoot'em up…
Things that
we would have done but time was missing…
First of all, make a full game.
The second idea was to make EditMap and the
game applet. People should have build new Map and everybody should have
accessed it. Then we should have made a tournament with every map we had.
Double horizontal scrolling should have been
fun…
And many other things …
You can contact the author :