Sharing Game Code

Started by Stupot, Fri 26/03/2010 19:11:35

Previous topic - Next topic

Stupot

How do people feel about releasing the source code of their AGS games for others to learn from?
I'm slowly but surely learning the basics of AGS with the help of Densming's amazing Youtube videos, but I'd like to be able to open up other people's games and see what's under the bonnet, not to rip off bits of code directly, but for learning and troubleshooting purposes.

How about it?

An idea for the new website: there could be a link on each game page to 'view script', and it would be entirely up to the game's author whether or not they wanted to share that information or not.
MAGGIES 2024
Voting is over  |  Play the games

Igor Hardy

Good idea. The Demo Quest's script was one of the best sources of AGS scripting knowledge for me.

Though my own scripts have been such a mess so far, that I doubt anyone would want to try to figure them out.

Calin Leafshade

I'd be happy to release specific sections of code if theres something in one of my games that people were interested in.

Releasing the source of an entire game though might be a little difficult to understand if you're not an OCD code commenter.

Kweepa

I'm all for that.
I'll add links to the source for all my games...

It would make judging "best programming" easier for the next AGS Awards :=
Still waiting for Purity of the Surf II

Radiant

I've got some source code tidbits here.

Iliya

I can share Cosmos Quest games but they are written on the old AGS platform version 2.72. The new Cosmos Quest IV is on the new AGS version.

abstauber

I usually create modules out of the interesting parts of my games, or if I modify stuff I send the code back to the author.

Well I could simply upload AeroNuts' sources, but being a MAGS title, the code got really messy towards the end ;)

Mr Flibble

I find it easier to write code that doesn't work than to read code that does.
Ah! There is no emoticon for what I'm feeling!

Radiant

I find it easier to write code that does work than to read code that doesn't :P.

Crimson Wizard

I can share an improved WOO code that I made based on original Gepard code.
I believe Gepard will not mind ;) Besides the code is 50-60% mine now  :D

http://www.mediafire.com/file/juwgcjolmdd/Woo_project_1_2_4_272.zip

It is heavily commented on purpose. Also, project is easily converted to AGS 3.2 without need of changing anything in script.
Have fun.  ;)

RickJ

It would be nice if the games page had an open source category and/or have the ability to search for games that have source code available.  Perhaps there would be games with full source and games with partial source available?

Calin Leafshade

95% of AGS game source is stuff like cEgo.walk(100,100).. how is it really useful?

I can think of only a handful of games which have any kind of interesting scripting.

GreenBoy

I downloaded your source for that mario clone you made Calin and I learned a lot from it.

The commenting sucked though.   :P

Calin Leafshade

you learnt to not get Calin Leafshade to script your game :p

Wonkyth

Quote from: Calin Leafshade on Thu 01/04/2010 06:59:25
95% of AGS game source is stuff like cEgo.walk(100,100).. how is it really useful?

I can think of only a handful of games which have any kind of interesting scripting.
The main attraction with seeing source is the fact that it's the finished product.
Most people can get their heads around the little details, but when it comes to assembling it into a glorious whole they lose it.
"But with a ninja on your face, you live longer!"

paolo

Quote from: Calin Leafshade on Fri 26/03/2010 21:12:42
Releasing the source of an entire game though might be a little difficult to understand if you're not an OCD code commenter.

Oh Calin, commented code is good! As long as you don't mean a huge block comment above just about every line and comments like
Code: ags
int b = 1;    //set b to 1
Now that really would be OCD :D

Peder 🚀

Would this be interesting for agsarchives.com?

Adding possibillity to upload the source code for your game?


Peder Johnsen.

abstauber

I'd say it's better to add extend the module subforum. Most "casual" gamers aren't probably too keen on checking the sourcecode.

Calin made a good start and two some projects [opensource] in the tech forum. So if a moderator just moves those to the module forum I'd be happy.



Also having the sourcecode right next to the actual game feels so...err... Gamer Maker like ;)

Sslaxx

Quote from: Peder Johnsen on Thu 22/04/2010 14:09:21
Would this be interesting for agsarchives.com?

Adding possibillity to upload the source code for your game?

Peder Johnsen.
Sounds quite an interesting idea!
Stuart "Sslaxx" Moore.

SMF spam blocked by CleanTalk