Game Development Community

Game source

by Drew -Gaiiden- Sikora · in Torque Game Builder · 06/30/2005 (10:34 pm) · 12 replies

Well, after quite the long haitus I'm ready to get back into T2D development with a vengeance. Of course I'll be making my way through King Tut's tuts... uhm... tutorials that is :P In addition to that I was wondering if anyone has some game source they've shared. I put up my brickout source that week that T2D debuted, but it wasn't too well organized. I'm mainly looking for ideas on how to structure my game - that's the main thing I'm having trouble getting my head around - the flow of the game code. It starts in client.cs but I'm still having trouble not sticking everything in that one file and creating a mess. So seeing the architecture of an actual game would help a lot. Or maybe that's an idea for another of Matt's tutorials. Heck maybe I'll even get a hang of it after going through all the tutorials. But in case I don't...

many thanks. good to be back.

#1
06/30/2005 (11:12 pm)
I noticed some tech demo stuff scattered through the resources, but nothing "games" beyond the spaceshooter and fishtank ones distributed with the sdk.

i'd like to see some too... something with "unique" features :)
#2
07/01/2005 (12:15 am)
Not that's it great, but my Biplane Battle game with source is available. Details here: www.garagegames.com/mg/forums/result.thread.php?qt=26840
#3
07/01/2005 (12:49 am)
Hey i think that's cool philip. how long did it take you to write that?
#4
07/01/2005 (1:53 am)
Thanks :)

Somewhere between 2 and 3 weeks doing just a few hours a day. It was a huge learning curve as I hadn't done any real game programming before. That meant I spent a lot of time chasing my tail figuring things out.

I think a lot of the code is 'get the job done' rather than 'get it done efficently', but it was a handy introduction to T2D.
#5
07/01/2005 (2:33 am)
The last tarball of jmts [Jugglemaster Torquescript] I have is here: jm-2005-04-07.tar.gz

Not much T2D stuff, but lots of torquescript. It was my first real torquescript exercise, and there's lots that I'd have done differently nowadays, but I guess that's just how it goes.

Gary (-;
#6
07/01/2005 (3:21 am)
I made an Asteroids clone a while back (called Rocks). It was more of a coding experiment than anything else, but it works rather well IMHO.

Link removed due to bandwidth troubles. If you would like the file, then please inform me and I will email you a link to it
#7
07/01/2005 (8:19 am)
Quote:King Tut's tuts


rofl that sounds very bad :)

Here is the full script of my first GID, the RTS in a Day.

Note: this was a GID and all done du ring one day, most of the code resides in strategy.cs, it definately isn't organized well since I did it all in about 12-14 hours. So don't expect to see good structure, though you can follow the flow of the game scripts (I organized the scripts inside that file fairly... look for the "startGame()" function to start the flow).

btw Welcome Back!
#8
07/01/2005 (1:54 pm)
Heres the same exact game but structured much better...

heres the basic structure

GID/client/scripts/

(in this folder there are these sub folders and files)

data/data.cs

gui/gui.cs

game/game.cs
game/circles.cs
game/squares.cs
game/map.cs
game/behaviors.cs

AI/AI.cs

camera/camera.cs
#9
07/02/2005 (12:36 am)
Thanks a lot for the help guys! Knew I could count on this awesome community
#10
07/28/2005 (10:37 am)
Phillip: Looks like your files arent being hosted anymore, any chance you could get this hosted somewhere else? I'd like to look at the source.

Also, anyone else got any source code to share? I think it would help me out. Thanks.
#11
07/28/2005 (2:58 pm)
The FTP space I use was provided by a friend. Lately his bandwidth has been totally raped, and it has been because of that Rocks game. It's still there, just hidden a little more. If you provide an email address, I can send you the link.
#12
07/28/2005 (8:39 pm)
Send it to jake at zenchess.com , thanks