|
Post by jimmarlowe on Nov 25, 2015 19:26:02 GMT 1
The latest git c++ code has some issues, at least compiling on linux. The OBJECT and HANDLER macros need to be moved to URHO3D_OBJECT etc. Beware the URHO3D_OBJECT takes two arguments instead of one. The other problem is in GameObjects.cpp, in void PlayerObject::OnHit(float damagePoint), there is a mistake in specifying namespace and event type, PlayerHealthUpdate vs PlayerHit, at least with g++ gave a really weird error message. Fixed code :
using namespace PlayerHealthUpdate;
float healthFraction = currentHealth_ / maximumHealth_;
VariantMap eventData; eventData[P_CURRENTHEALTHFRACTION] = healthFraction;
SendEvent(E_PLAYERHEALTHUPDATE, eventData);
}
Once that was done, it ran. Is that a blur shader at the beginning of the game?
|
|
|
Post by BlueMagnificent on Nov 27, 2015 21:17:25 GMT 1
Thanks alot for noticing these... OBJECT macro issue must have been an oversight. I thought I renamed it to URHO3D_OBJECT but it seemed to have slipped through. For quit a while now the c++ equivalent of GameObject has not been updated and has functionally been removed from the c++ implementation of DroneAnarchy. I hinted a bit about it here . Going through the c++ codes you'll notice that the Logic Component based Game Objects have been removed in favor of the script based ones and I've been thinking of totally removing the files from the repository. If there is currently a reason to have them re-included then I'll do so. Yeap, that's a blur that I added as part of effect, I hope it doesn't look awkward
|
|