Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Why does it speed up when I click on X

Author
Message
roujesky
15
Years of Service
User Offline
Joined: 4th Jun 2004
Location:
Posted: 2nd Dec 2004 10:55
Just a question, not a biggy:
I wrote the attached little prog. It very smoothly rotates the cube. When I click on the 'X' to close the app and MAN! it really starts spinning! I saw something somewhere here about how to get the 'X' to work, and I will find it. But, what I really want to know is what makes my app really start humming when I hit the 'X'?

BTW, VC6 SP5, debug mode...
OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Dec 2004 12:16
Try :

while (LoopSDK())
{
if (!dbEspaceKey()
{
return;
}

...
}

Walk softly... and carry a big gun...
Ravey
Retired TGC Developer
16
Years of Service
User Offline
Joined: 2nd Nov 2002
Location: Southern TGC Nerve Centre
Posted: 2nd Dec 2004 18:24 Edited at: 2nd Dec 2004 18:27
in TCA's example change this line:

if (!dbEspaceKey()


to:

if ( dbEscapeKey() )


Otherwise your game will be the shortest of all time (as well as not compiling using TCA's unique spelling and missing bracket )

Regards,
Dave Milton
ravey@thegamecreators.com
OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Dec 2004 18:32
Indeed - in full, its :

while ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
...
}

No idea how it go so mangled as it was a copy & paste job

Walk softly... and carry a big gun...
Ravey
Retired TGC Developer
16
Years of Service
User Offline
Joined: 2nd Nov 2002
Location: Southern TGC Nerve Centre
Posted: 2nd Dec 2004 18:45 Edited at: 2nd Dec 2004 18:48
It happens to the best of them (and me too!)

Regards,
Dave Milton
ravey@thegamecreators.com
OSX Using Happy Dude
16
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Dec 2004 18:54
Quote: "It happens to the best of them (and me too!)"

Quite true...

Oh by the way - with Dark Dungeon, there is a noticable pause when first firing (ala HL2)...

Walk softly... and carry a big gun...
jasuk70
16
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 2nd Dec 2004 18:56
With Dark Dungeon. I wish the enemies will stay down, They bounce back up quicker then I can shoot . Amazing work for 4 days though.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
Erick G
Retired Moderator
14
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 2nd Dec 2004 19:01
i like that little shooter

Yeah, thr first time a beast got up after I potted him, I almost lost my bladder.

Login to post a reply

Server time is: 2019-09-15 09:08:36
Your offset time is: 2019-09-15 09:08:36