Sign in to follow this  
pervycreeper

Open Source Projects

Recommended Posts

I'm looking around for some simple open source game projects that follow good practices in their code, with the intent of hopefully learning something from reading the sources. Preferably something that's reasonably terse, works in realtime, and does something nontrivial with graphics and sound. Any recommendations?

Share this post


Link to post
Share on other sites
You learn from reading code but at the same time you don't learn anything. You just end up in the habit of re-using the same little code snippets over and over again, blatent copying of the code straight into your own projects.

Share this post


Link to post
Share on other sites
These are games made with Pygame, which is a Python addon library.
[url="http://www.pygame.org/news.html"]http://www.pygame.org/news.html[/url]
Everything here is open source. Just use Notepad++ to read the .py files, or download and install Python and Pygame. Edited by Shippou

Share this post


Link to post
Share on other sites
[url="http://www.gamedev.net/topic/625938-open-source-code-for-a-beginner/page__p__4946640#entry4946640"]I wrote a post here once that I'm just going to link to rather than copy 'n' paste...[/url]

Share this post


Link to post
Share on other sites
You could take a look at [url="http://www.secretmaryo.org/"]Secret Maryo Chronicles[/url], or check this recently posted topic sharing "[url="http://www.gamedev.net/topic/629258-a-highly-commented-pong-game-in-javascript/"]a highly commented pong game in javascript[/url]".

Like those above however, I'm a strong believer that there isn't always much value in reading source-code as a beginner, as you lack the context telling you [i]why[/i] the code was written a certain way -- is it actually a good technique, something the author was unfamiliar with and just slapped together, did they have strict memory requirements that might not apply to you, etc.?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this