Basic 2d game engine with sprite collision detection

I’ve spent a few hours playing around with the Java2D api over the weekend, and with the tutorial on this site, I’ve got a basic framework for implementing a simple 2D game. So far I’ve got a keyboard handler to control the player’s movement and collision detection against solid objects. You can move the player character around the screen and with solid objects (tiles) on the screen it wouldn’t be too far from this point to implement a simple maze or platform game.

At this point this is probably more than I need since I was thinking of implementing a version of one of the original Game & Watch games as a starting point. I’ll keep you posted on how I progress and at some point I’ll also post the source.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.