Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been working with java for a few months now with my girlfriend and we're moving along at an expected rate. I understand the concepts of OOP, we've built many pseudo code starter games from tutorials, moving characters, shooting, collision detection..

Now comes the part where I've been reading into threads, lowering lag, flicker, networking, deployment options and I'm getting frustrated. If possible, I'd like to learn from an example. A full source with a simple game. Here are the requirements I'm looking for:

  • Top down view
  • WASD movement, fluid and not tile to tile, 8 directions or full 360
  • mouse controlled aiming, click to "shoot".
  • 1 or more mobs
  • 1 player with some type of health, score or life system.

The reason I'm looking for this is because I'm very visual and I'm having a hard time taking a step back to see the larger picture. IE: the framework/skeleton? If someone could help with any tutorials, resources or code samples, that would be wonderful!!


share|improve this question

closed as off-topic by Byte56 Nov 20 '13 at 22:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about "how to get started" or "what should I learn next" cannot reasonably be answered with anything other than opinion polling and therefore are off topic for the site. For more information on how to ask a better question, see the help center" – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

A few years back Morre made a game for Ludum Dare, it meets most of the requirements you asked for. It can be found here:

I haven't looked at the source code, so I don't know if it's good to follow that structure. However the game play is pretty good and the game is complete (graphics, sound, etc.)

If you find it useful you should contact Morre and thank them.


Well I had a chance to look through the source code. It's not a code structure I would emulate (for example, the update function is about 550 lines of code, yikes). This is understandable however, since it was created for a competition. I know when I did LD, I didn't worry too much about good looking code. I think you'll still be able to learn some things from it, but it'll be more difficult than a tutorial.

share|improve this answer
You're right that it'll be a little tougher than a tutorial but this is great! Any resources like this to help me see code of a finished product are very valuable. I'll admit that the game is actually extremely similar to the "feeling" I had in mind for my own. Thank you for leading me in this direction. I'll also be sending a message of gratitude to Morre. I see how much work he put into it! – Epixtome Sep 11 '11 at 6:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.