views:

1323

answers:

14

So one can play with it.

+2  A: 

Lutz Roeder's Digger (silverlight version)

Wikipedia has a list of open-source games.

As does sourceforge.

Mitch Wheat
A: 

Microsoft's XNA Game Studio (link) has a few very interesting examples of small games, with source codes and assets, on the creators club website. Take a look at http://creators.xna.com/en-US/education/starterkits/ It makes for a very interesting starting point if you're looking for non-browser based games.

More generally, I think XNA is a pretty good starting point.

Axelle Ziegler
+8  A: 
Matt Brunell
Haha! If no one had added this I was going to add it myself. Loved it when I started with QBasic, still remembers it fondly for nostalgic reasons.
Darkwoof
Very funny!! how could someone remember this...darn takes me way back then. Good one.
gath
OMG and Nibbles too. There are times I miss QBasic. This is one of them.
Smalltown2000
+7  A: 

I am not sure that the size of the source code / project necessarily has a correlation with the possibility, ease, and fun of of tinkering with it. Larger projects are often organized better.

SourceForge has a great collection of open-source games that can teach you a lot.

If you're looking for a real challenge, consider the open-source version of Star Control 2

Uri
+1 Star Control II is possibly the best game ever made.
Chris Lutz
Agreed :) It's been close to twenty years and I still haven't played a game like it... Though I initially. had high hopes for mass effect...
Uri
+7  A: 

Most of the Quake series is open source. I enjoyed the source code.

http://www.idsoftware.com/business/techdownloads/

Geoffrey Chetwood
+4  A: 

One of the best open source games in my opinion is The Battle for Wesnoth

John Nilsson
+3  A: 

I have posted the source code to two of my 256 byte games:

256 Byte Games Source Code

...if you enjoy x86 assembler.

BoltBait
I do, and thanks.
Simucal
A: 

gforth's sokoban.fs. It's fun; the code

  1. clears and redraws the screen with every move;
  2. make insightful use of pattern-matching rules; and
  3. does almost nothing else.

You can repeat this very easily, and learn from it, and get a decent game out of it. Just try not to get crazy with thoughts about how multiple actors and an extension of the rules could let you similarly implement Lolo.

ayrnieu
+1  A: 

If you want reasonably small, arcade-ish games, search your favorite linux distro (ubuntu or debian at least) for Kenta Cho. Also noteworthy are supertux and kobodeluxe.

If you want bigger games, look for Nexuiz, OpenArena or freeciv. Warsow, sauerbraten and tremulous have source available but some license restrictions on the media bits [they're not in ubuntu/debian main, IIRC].

I've implemented a handicap system for Nexuiz in three lines of QuakeC; one line to add a damage amplifier field to each player, one line to let players set it, and one line to amplify the damage dealt to each player by that player's desired amount (at least 1, though---no cheating :p).

Jonas Kölker
+1  A: 

CodeRally from IBM was designed to be both fun and easy to tinkle with, in order for you to learn how to develop

Ric Tokyo
A: 

Try some flash games. They're simple, and you can ethically decompile them, see how they work. Plus some of the most creative games right now are prototyped in Actionscript.

Invisible Coder
+1  A: 

Check out PyWeek, it's a contest in which everyone build a Python game "from scratch" in one week, and all games are open source.

To get an example, check out one of my games :) http://www.pyweek.org/u/Srekel/

Obviously the code you write in just one week tend to not be the prettiest, but you can probably get some ideas on how to get started from "Robots in saucers": http://www.pyweek.org/e/RobotTrail/ It's a 2d seen-from-the-side, physics-driven, tower defence game. :)

Srekel
+2  A: 

NetHack is a classic open-source dungeon explorer that's been around for years. There's even a guide or two floating around to help you modify the source code: here's one I came across.

gnovice
I cannot call its source code "simple" in any way :)
Kuroki Kaze
+3  A: 
Ranieri