#include "DarkGDK.h"
void DarkGDK ( void )
{
dbAutoCamOff();
dbMakeMatrix( 1,4000,4000,100,100);
dbSetMatrixHeight( 1,50,50,500);
dbUpdateMatrix( 1);
dbMakeObjectBox( 1, 10,20,30);
dbSyncOn ( );
dbSyncRate ( 60 );
float ya;
float an;
float x;
float y;
float z;
float angle;
float distance;
float height;
float smooth;
while ( LoopGDK ( ) )
{
if (dbUpKey() ) { dbMoveObject( 1,4); }
if (dbDownKey()) { dbMoveObject( 1,-4); }
if (dbLeftKey()==1) { ya=ya-2; }
if (dbRightKey()==1) { ya=ya+2; }
if (dbShiftKey()==1) { an=an+1; }
if (dbControlKey()==1) { an=an-1; }
dbRotateObject( 1, 0,ya,0 );
x=dbObjectPositionX(1);
y=dbObjectPositionY(1);
z=dbObjectPositionZ(1);
angle=dbObjectAngleY(1)+an;
distance=200.0;
height=100.0 ;
smooth=12.0;
dbSetCameraToFollow( x,y,z,angle,distance,height,smooth,0);
dbSync ( );
}
return;
}