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 doesnt this code work?

Author
Message
Kamaloo
14
Years of Service
User Offline
Joined: 20th Dec 2009
Location:
Posted: 20th Dec 2009 09:48
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"

// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbCreateAnimatedSprite (1,“animatedsprite.png”,4,4,1);

// our main loop
while ( LoopGDK ( ) )
{
// update the screen

}

// return back to windows
return;
}



please help ...ive attached the build log

Kamaloo

Attachments

Login to view attachments
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 20th Dec 2009 11:57
" and ", not “ and ”

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 20th Dec 2009 13:02
also, you forgot a dbSync() in the loop ( dunno if it's a typo but well.. )

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Dec 2009 19:31
yup - first thing I noticed was lack of dbSync().. and also we are presuming your image is in the right place (this is not always as obvious as you'd think. Make or use a function like fileexists so you can tell for certain if your media is where it needs to be:




Login to post a reply

Server time is: 2024-11-20 07:34:50
Your offset time is: 2024-11-20 07:34:50