About Store Forum Documentation Contact



Post Reply 
hi, help please! a question in Bloody Massacre
Author Message
lovee Offline
Member

Post: #1
hi, help please! a question in Bloody Massacre
hi, my dear friend

Bloody Massacre\Source\Game.cpp

1. New Version Bloody Massacre:
   
2. Old Version Bloody Massacre:
   
How to solve this problem?
please give a little tips!
thank you very much!
08-16-2010 06:27 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: hi, help please! a question in Bloody Massacre
Just add the line 'case RM_LIGHT:' doesn't work??

or add light in the Game::World.init()

.setObjType(Light1,OBJ_LIGHT_POINT), // point light
.setObjType(Light2,OBJ_LIGHT_CONE); // cone light


~Dynad

There is always evil somewhere, you just have to look for it properly.
08-16-2010 07:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: hi, help please! a question in Bloody Massacre
This code which you show is about Bullets not light in lamp. I think that the problem is somewhere in Light.cpp.
08-16-2010 08:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: hi, help please! a question in Bloody Massacre
Thanks!
I didn't update the light codes, when there were changes in the engine.

light.h should be changed to:
Code:
/******************************************************************************/
STRUCT(LightBulb , Game::ObjLightPoint)
//{
   virtual UInt drawPrepare();
   virtual void drawBlend  ();
};
/******************************************************************************/

light.cpp
Code:
/******************************************************************************/
#include "stdafx.h"
#include "Main.h"
/******************************************************************************/
UInt LightBulb::drawPrepare() {return IndexToFlag(RM_BLEND);}
void LightBulb::drawBlend  ()
{
   DrawParticle(*Images("gfx/fx/gauss.gfx"),   0,WHITE, 0.16,3.0,0, pos(),Vec(0,0,0));
   DrawParticle(*Images("gfx/fx/star.gfx" ), 128,WHITE, 0.37,1.0,0, pos(),Vec(0,0,0));
}
/******************************************************************************/
08-16-2010 09:08 PM
Find all posts by this user Quote this message in a reply
lovee Offline
Member

Post: #5
RE: hi, help please! a question in Bloody Massacre
thank you my friends, thank you very much for your help!
08-16-2010 09:48 PM
Find all posts by this user Quote this message in a reply
Post Reply