Nifty Loading Screen
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
RageCage

Here's a nifty way of displaying a screen before anything in verge is loaded( At least I think ). If I'm wrong and it's pointless... so sue me, it's still nifty.



//print "Loading..." onto the screen before anything else happens
int loading=load();

int load(){
rectFill(0,0,windowGetWidth(screen),windowGetHeight(screen),0,screen);
printString(100,100,screen,0,"Loading...");
showPage();
}

//load Lots of stuff while loading is printed on screen
int lotsOfStuff[1024][1024];
int loadLotsOfStuff=load2();

int load2(){
int i, k;
for(i=0;i<1024;i++)
for(k=0;k<1024;k++)
lotsOfStuff[i][k]=0;
}

//using this method we never run autoexec,
//hell, we could make a game without out ever using autoexec
//muahaha!!!!
void autoExec(){
//I'm so lonely ;_;
}

Posted on 2004-07-29 03:12:41 (last edited on 2004-07-29 04:13:11)

Omni

Whoa!

I mean, the loading part is stupid...(actually, I take that back), but I was more interested to realize that being able to use function declarations as initial arguments allows you to call actual screen code.

Spiffy. Nice find, RageCage.

Posted on 2004-07-29 04:38:27

Toen

Quote:Originally posted by Omni

Whoa!

I mean, the loading part is stupid...(actually, I take that back), but I was more interested to realize that being able to use function declarations as initial arguments allows you to call actual screen code.

Spiffy. Nice find, RageCage.

Actually a loading screen isn't entirely useless. I saw someone in #vergehelp the other day wondering why his compile times were so long, when the actual slowness happened when he was making a big multidim array. You could use that to mark when compiling was finished and when your code starts running.

Posted on 2004-07-30 00:40:37

Overkill

Quote:Originally posted by Toen

Quote:Originally posted by Omni

Whoa!

I mean, the loading part is stupid...(actually, I take that back), but I was more interested to realize that being able to use function declarations as initial arguments allows you to call actual screen code.

Spiffy. Nice find, RageCage.

Actually a loading screen isn't entirely useless. I saw someone in #vergehelp the other day wondering why his compile times were so long, when the actual slowness happened when he was making a big multidim array. You could use that to mark when compiling was finished and when your code starts running.


That "someone" was me. ;_;. I guess 3 256x256 multi-dim arrays are too much for my crappy 166 mhz PC.

Posted on 2004-07-30 00:55:50

vecna

the global initializers code is executed just before the autoexec, not before the VC compiler... compiles.... obviously. Heh.

But yeah, it's fun for the whole family!

Posted on 2004-07-30 01:01:51

Gayo

I should do a whole game in that, and then have the autoexec just be an exit().

Posted on 2004-07-30 04:52:01


Displaying 1-6 of 6 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.