I updated to the latest upgrade and I get these errors, which never appeared before the update.
#include "DarkGDK.h"
#include "DarkPhysics.h"
#include "DarkAI.h"
#include "DarkLights.h"
#include "ShaderData.h"
#pragma comment ( lib, "DarkPhysics.lib" )
#pragma comment ( lib, "DarkAI.lib" )
#pragma comment ( lib, "DarkLights.lib" )
#pragma comment ( lib, "ShaderData.lib" )
void DarkGDK ( void ) {
//Settings
dbSyncOn();
dbPhyStart();
dbPhySetGravity(0,-200,0);
dbSyncRate(60);
dbBackdropOn();
dbPositionCamera(0,0,-10,30);
//Player
dbMakeObjectBox(1,10,30,10);
dbPositionObject(1,0,50,0);
dbColorObject(1, RGB(0,255,0));
//Other Objects
dbMakeObjectBox(2,200,1,200);
dbColorObject(2,RGB(126,235,21));
dbMakeObjectCube(3,80);
dbColorObject(3,RGB(255,0,0));
dbPositionObject(3,0,0,30);
dbMakeObjectSphere(4,20);
dbColorObject(4,RGB(255,0,0));
dbPositionObject(4,0,0,-50);
//Setting up physics
dbPhyMakeBoxCharacterController(1,0,50,0,5,15,5,1,5,45);
dbPhyMakeRigidBodyStaticMesh(2);
dbPhyMakeRigidBodyStaticMesh(3);
dbPhyMakeRigidBodyStaticMesh(4);
//Camera
dbRotateCamera(0,0,0,0);
//Loop
while( LoopGDK ( ) ) {
//Declare player position as x,y,z
float x = dbObjectPositionX(1);
float y = dbObjectPositionY(1);
float z = dbObjectPositionZ(1);
//Movement
if (dbKeyState(200) == 1) {
}
if (dbKeyState(208) == 1) {
}
if (dbKeyState(203) == 1) {
dbRotateObject(1,-2,0,0);
}
if (dbKeyState(205) == 1) {
dbRotateObject(1,+2,0,0);
}
//Position camera to player
dbPositionCamera(0,x,y,z-100);
dbShowObject(2);
//Display x,y,z
dbInk(RGB(250,0,160),RGB(250,0,160));
dbText(0,0,dbStr((int)x));
dbText(0,10,dbStr((int)y));
dbText(0,20,dbStr((int)z));
//Update Screen and Physics
dbPhyUpdate();
dbSync();
}
}
Hahaha 60 views and no other posts?
Woo 100 views haha
Always program as if the person maintaining your program is a psychopath that knows where you live