PDA

View Full Version : Source Code


Nick
2004.07.14, 04:56 PM
Now that everyone's tired of answering my questions, here's another little request. Does anybody here have source code for a free Tetris-type game, Pong-type game, Pac-Man-type game, or side scroller? I don't want to be in violation of any copyright laws so any source code that I shouldn't have, I don't want but if any of you have written any of these and are willing to share the source code I would appreciate it.

I have found that one easy way for me to learn to make games is to examine other people's source code and use references for ways to use the commands/functions.

Any response is a good response to me.

aegidian
2004.07.14, 07:20 PM
Does anybody here have source code for a free Tetris-type game

*cough*

http://jeweltoy.aegidian.org/

NCarter
2004.07.15, 09:50 AM
It's a shame we don't have the source code for previous years' uDevGames entries available right now, because they'd be ideal for your situation. I imagine we'll get them all back online at some point in the not-too-distant future, but for now you'll just have to track down the games yourself. Take a look at this thread (http://www.idevgames.com/forum/showthread.php?t=6008) - try some of the games out, and if you think they're relevant, try asking the developer for the source code.

Oddly, not many people seem to have made their source code available on their own website, but I'm sure they'd be willing to hand it out if you ask.

Tools10
2004.07.15, 11:09 AM
Im aware that this page isn't made for mac sources but if you need some tips on how to work a game engine.
www.planet-source-code.com

Nick
2004.07.15, 12:39 PM
Thanks for all the help. I'm still looking so more responses are still welcome.
edit: I am looking for simpler games that are not OpenGL based so that I can learn and begin programming. I appreciate these links, but simple Carbon or Cocoa games like Tetris or Pong would be more helpful if anyone has access to that kind of source code.

jSTIN
2004.07.15, 01:19 PM
Well, you might want to look at SpriteWorld (http://www.spriteworld.org). They are some simple demo apps included in there.

blobbo
2004.07.15, 04:25 PM
SimReality: I've got exactly what you want, but I have to dig it up.

Pong in Cocoa is a great project to start with.

Here's a link for Pong I wrote in Cocoa:

http://idevgames.com/forum/showthread.php?t=6158&highlight=cocoa

Funny to read it now :) I've come a fair ways :P

-Aaron

arekkusu
2004.07.18, 01:39 AM
How about source for the cross-platform platform scroller "Alex the Allegator (http://www.freelunchdesign.com/games.shtml)".

Nick
2004.07.18, 01:51 AM
Really? That would be awesome. I love that game. Thanks a bunch. Isn't that made with Allegro? How do I make games with Allegro?

Josh
2004.07.18, 03:02 AM
Indeed, it is made using Allegro. Judging simply by the size, though, this isn't a very simple example for a newbie.