I did not call loop SDK
oh and here is the code... remember dont press any alt-f4 kindof buttons unless you really want to restart:
#include "DarkSDK.h"
// Function prototypes
void makeBob();
void DarkSDK ()
{
// Game entry point
// Set the window mode off
dbSetWindowOff();
dbSyncOn();
dbSyncRate(40);
dbSetDisplayMode(1024,768,32);
dbHideMouse();
// Create Bob
makeBob();
float angle = 0;
for(;
{
dbSetCursor(0,0);
if ( dbSpaceKey()==1 ) { break; }
angle = dbWrapValue(angle+1);
dbYRotateObject(1,angle);
dbSync();
}
}
/* Functions:
void makeBob() - creates the Bob object and textures it
*/
void makeBob ()
{
// Create a blank sphere object
dbMakeObjectSphere(1,100);
}