Simple Open Source Java Code

Hello, everyone!

I’m a noob, so please forgive my lack of knowledge.

I’m looking for some simple open source java games that I can look at to get an idea of how to code them. Then I suppose I would move up to more and more complex code until I were an expert programmer.

My question is where are some good places to start? I’ve taken tutorials and stuff and have a pretty good handle on the basics, but I would really just like to see some finished products in order to understand how to really get started.

I would like mostly android games, but also some online games.

I know there’s github, but I don’t really understand how to find simple android games. And I’ve tried google, but that led me here, before anyone suggests that.

I always think it’s weird in forums when people just say “google it” like we’ve never thought of that.

Anyway, I would really appreciate any help anyone can offer.

I hear you, in terms of the “just Google it” reply. Been there myself.

http://www.cokeandcode.com/main/tutorials/

This has the source for the classic “Space Invaders” and helps in heading towards Android development with its use of LWJGL in the 4th iteration of the game. LWJGL is an important library in LibGDX. LibGDX is a framework for building games that will run in Android, HTML5, even on the Mac, as well as the Java desktop.

Do check our “Java Gaming Resources” (just under the Logo).

Becoming an expert programmer is a great ambition, but you can’t learn everything. I am programming for some years, but everytime I start something new I don’t feel like an expert ::slight_smile:
Indeed I don’t think that I am an expert, I even wouldn’t say that I really know any language, of course I am able to code my stuff, but programming is such a big field :slight_smile:
Just code for fun -> you will become better and learn coding on the fly ;D
Maybe you could go for a tetris/mario/spaceinvaders clone, there are also some youtube tuts out there. They might be not perfect, but they give first idea of programming a game :slight_smile:
But looking at some projects isn’t a bad idea anyways :slight_smile:
Don’t start with huge projects, it might be quite frustrating.
So just go for coding something you are interested in, keep asking questions and use google :slight_smile:

ps:
In my opinion the best reason for learning something new is, that you will be able to learn the next stuff you have to learn faster.

Hi

There are tons of free / open source games on Sourceforge.net, some developers here share their code too.

What do you mean by “online games”? Forget MMOs if you’re a real newbie.

What I recommend is first decide what type of game would you like to produce.
As you start in the adventure of game programming small steps are best. A 2D game might be the best place to begin.
Next how would you like to do your 2D game… there are many ways of painting on 2D canvas.
Do your research, play with code and don’t be afraid to ask questions :slight_smile:

good luck.

j.