lovee
Member
|
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 |
|
Dynad
Member
|
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 |
|
Harry
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
lovee
Member
|
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 |
|