Game size

Started by Da_Elf, Sun 07/01/2007 16:57:40

Previous topic - Next topic

Da_Elf

whats the average amount of line wold you find int he global script in a biggish game

EDIT

Sorry i didnt realise the amount of typoes there were there..

Im asking how many lines of code are people getting in their "global script" for a faily large game (as said in a follow up post. a game around the size of apprentice 2). Im up to 600 lines and i can easily see that being trippled or more before my game is finished. Im just wondering if im using excessive amounts of code when there might be simpler ways to do thing. Its a fairly harmless question

Gilbert

This mainly depends on how "big" a game is and how it rely on scripts, and it's more like an "ask for opinion" question which definitely doesn't fit in the Tech. forum. So I'm moving it.

Da_Elf

yeah. sory about that i wasnt sure where to put it. lets say a game the length of apprenticeII

Gregjazz

I don't have the source of App2 handy, but Super Jazz Man has 4845 lines in the global script, and an average of 500-700 lines in each room.

Apprentice 3 already has 605 lines in the global script, and I'm scripting it a lot cleaner and condensed than our previous Apprentice games.

Da_Elf

ah ok. i dont feel bad then about the size of my game

ManicMatt

#5
Secrets only has 373 by comparison. I manually script only when it's neccesary. Limbo currently has 268, and isn't anywhere near finished..

Mr Flibble

Quote from: Geoffkhan on Sun 07/01/2007 17:38:37
Apprentice 3

*Walks calmly into kitchen*
*Makes cup of tea*
*Returns with cup of tea*
*Leisurely looks at screen*
*Spits out tea in shocked fashion* 
: D

(On topic, I'd be more concerned about the actual size of the final exe than the length of the code.)
Ah! There is no emoticon for what I'm feeling!

Da_Elf

its currently at 40mb. I'm thikning it will top off at about 100mb mabye i should have done it at 320x240 rather than 640x480

Vince Twelve

Sounds fun!  I'm checking...

Anna had only 55 lines in the global script.  I put pretty much all the code in the room file.  It uses only one room, but that room includes 4866 lines of code.

Spooks' global script ran 1462 lines with the average room ranging from 50 to 200 lines.

Linus Bruckman has 7104 lines in the global script with very little code in the room files.

woodz

i must admit i worry more about the actual file size, than the global script.. its suprising how many people still use dialup :-\

Da_Elf

the good thing is it compresses decently. my 40mb file compresses to 13mb

Erenan

Yeah, you'll find that script and graphics tend to compress pretty well, whereas music and sound don't compress quite as much. So the easiest way to make a download really big is to include lots of digital sounds and music.
The Bunker

Da_Elf

i would assume midi music would compress very well due to the nature of midi code

LimpingFish

Midi music is tiny anyway, so you wouldn't benefit much from compressing it. Anything that's already in a compressed file format (MP3, OGG, etc) doesn't compress beyond a few bytes in filesize, though, and can add a lot to the resulting zipped game file.
Steam: LimpingFish
PSN: LFishRoller
XB: TheActualLimpingFish
Spotify: LimpingFish

Erenan

Right. MIDI files contain no sound information, but merely instructions that your sound card uses to create the music, so they're very small. I was just talking about digital audio.
The Bunker

Nikolas

Quote from: Vince Twelve on Mon 08/01/2007 00:24:22
Linus Bruckman has 7104 lines in the global script with very little code in the room files.
And all that for 1 puzzle actually!

Imagine making a proper full lenght adventure game! The number would be around 7,841,127,332... :P

Why is the lenght of the script important? I guess the EXE file is more important no?

SMF spam blocked by CleanTalk