📄 castlesceneparticles.h
字号:
if (ParticleFraction!=0.0f)
{
caParticleSystem[0]=PGod.NewSystem(100,"Data/Particles/star.bmp", 50, false); // The Fire particle system :D
caParticleSystem[0]=PGod.NewSystem(100,"Data/Particles/star.bmp", 50, false); // The Fire particle system :D
PGod[caParticleSystem[0]]->InitialParticle.Pos=Vector3d(-4.15f,8.4f,6.7f);
PGod[caParticleSystem[0]]->InitialParticle.Speed=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[0]]->InitialParticle.fLifetime=700;
PGod[caParticleSystem[0]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[0]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[0]]->InitialParticle.fInitialSize=0.6f;
PGod[caParticleSystem[0]]->InitialParticle.fFinalSize=0.3f;
PGod[caParticleSystem[0]]->InitialParticle.InitialColor.r=0.7f;
PGod[caParticleSystem[0]]->InitialParticle.InitialColor.g=0.3f;
PGod[caParticleSystem[0]]->InitialParticle.InitialColor.b=0.1f;
PGod[caParticleSystem[0]]->InitialParticle.FinalColor.r=0.7f;
PGod[caParticleSystem[0]]->InitialParticle.FinalColor.g=0.3f;
PGod[caParticleSystem[0]]->InitialParticle.FinalColor.b=0.1f;
PGod[caParticleSystem[0]]->Chaos.Pos=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[0]]->Chaos.Speed=Vector3d(0.006f,0.006f,0.006f);
PGod[caParticleSystem[0]]->Chaos.fLifetime=100.0f;
PGod[caParticleSystem[0]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[0]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[0]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[0]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[0]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[0]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[0]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[0]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[0]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[0]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[0]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[0]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
caParticleSystem[1]=PGod.NewSystem(400,"Data/Particles/star.bmp", 50, false); // The Wierd Moving Particles
PGod[caParticleSystem[1]]->InitialParticle.Pos=Vector3d(-8.3f,6.4f,6.0f);
PGod[caParticleSystem[1]]->InitialParticle.Speed=Vector3d(0.0f,0.005f,0.0f);
PGod[caParticleSystem[1]]->InitialParticle.fLifetime=400;
PGod[caParticleSystem[1]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[1]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[1]]->InitialParticle.fInitialSize=0.4f;
PGod[caParticleSystem[1]]->InitialParticle.fFinalSize=0.2f;
PGod[caParticleSystem[1]]->InitialParticle.InitialColor.r=0.8f;
PGod[caParticleSystem[1]]->InitialParticle.InitialColor.g=0.02f;
PGod[caParticleSystem[1]]->InitialParticle.InitialColor.b=0.6f;
PGod[caParticleSystem[1]]->InitialParticle.FinalColor.r=0.8f;
PGod[caParticleSystem[1]]->InitialParticle.FinalColor.g=0.02f;
PGod[caParticleSystem[1]]->InitialParticle.FinalColor.b=0.6f;
PGod[caParticleSystem[1]]->Chaos.Pos=Vector3d(0.0f,0.0f,4.0f);
PGod[caParticleSystem[1]]->Chaos.Speed=Vector3d(0.0f,0.0005f,0.00025f);
PGod[caParticleSystem[1]]->Chaos.fLifetime=200.0f;
PGod[caParticleSystem[1]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[1]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[1]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[1]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[1]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[1]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[1]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[1]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[1]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[1]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[1]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[1]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[1]]->BumpAtYPlane=true;
PGod[caParticleSystem[1]]->YPlane=0.0f;
PGod[caParticleSystem[1]]->AccelFraction=0.0002f;
caParticleSystem[2]=PGod.NewSystem(200,"Data/Particles/spark.bmp", 50, false); //Gandalf Magic
PGod[caParticleSystem[2]]->InitialParticle.Pos=Vector3d(12.5f,2.0f,6.0f);
PGod[caParticleSystem[2]]->InitialParticle.Speed=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[2]]->InitialParticle.fLifetime=700;
PGod[caParticleSystem[2]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[2]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[2]]->InitialParticle.fInitialSize=0.4f;
PGod[caParticleSystem[2]]->InitialParticle.fFinalSize=0.2f;
PGod[caParticleSystem[2]]->InitialParticle.InitialColor.r=0.02f;
PGod[caParticleSystem[2]]->InitialParticle.InitialColor.g=0.8f;
PGod[caParticleSystem[2]]->InitialParticle.InitialColor.b=0.6f;
PGod[caParticleSystem[2]]->InitialParticle.FinalColor.r=0.02f;
PGod[caParticleSystem[2]]->InitialParticle.FinalColor.g=0.8f;
PGod[caParticleSystem[2]]->InitialParticle.FinalColor.b=0.6f;
PGod[caParticleSystem[2]]->Chaos.Pos=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[2]]->Chaos.Speed=Vector3d(0.001f,0.001f,0.001f);
PGod[caParticleSystem[2]]->Chaos.fLifetime=600;
PGod[caParticleSystem[2]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[2]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[2]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[2]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[2]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[2]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[2]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[2]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[2]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[2]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[2]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[2]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[2]]->BumpAtXPlane=true;
PGod[caParticleSystem[2]]->XPlane=-2.3f;
PGod[caParticleSystem[2]]->AccelFraction=0.0001f;
caParticleSystem[3]=PGod.NewSystem(200,"Data/Particles/star.bmp", 50, false);//First Sword Fire
PGod[caParticleSystem[3]]->InitialParticle.Pos=Vector3d(-2.84f,3.5f,7.0f);
PGod[caParticleSystem[3]]->InitialParticle.Speed=Vector3d(0.0005f,0.004f,-0.002f);
PGod[caParticleSystem[3]]->InitialParticle.fLifetime=700;
PGod[caParticleSystem[3]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[3]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[3]]->InitialParticle.fInitialSize=0.15f;
PGod[caParticleSystem[3]]->InitialParticle.fFinalSize=0.45f;
PGod[caParticleSystem[3]]->InitialParticle.InitialColor.r=0.7f;
PGod[caParticleSystem[3]]->InitialParticle.InitialColor.g=0.3f;
PGod[caParticleSystem[3]]->InitialParticle.InitialColor.b=0.3f;
PGod[caParticleSystem[3]]->InitialParticle.FinalColor.r=0.7f;
PGod[caParticleSystem[3]]->InitialParticle.FinalColor.g=0.3f;
PGod[caParticleSystem[3]]->InitialParticle.FinalColor.b=0.3f;
PGod[caParticleSystem[3]]->Chaos.Pos=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[3]]->Chaos.Speed=Vector3d(0.00025f,0.0005f,0.0005f);
PGod[caParticleSystem[3]]->Chaos.fLifetime=200;
PGod[caParticleSystem[3]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[3]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[3]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[3]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[3]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[3]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[3]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[3]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[3]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[3]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[3]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[3]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
caParticleSystem[4]=PGod.NewSystem(200,"Data/Particles/star.bmp", 50, false);// Knight's attack fire
PGod[caParticleSystem[4]]->InitialParticle.Pos=Vector3d(-1.37f,2.3f,6.95f);
PGod[caParticleSystem[4]]->InitialParticle.Speed=Vector3d(0.0045f, 0.0005f,-0.0017f);
PGod[caParticleSystem[4]]->InitialParticle.fLifetime=700;
PGod[caParticleSystem[4]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[4]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[4]]->InitialParticle.fInitialSize=0.15f;
PGod[caParticleSystem[4]]->InitialParticle.fFinalSize=0.6f;
PGod[caParticleSystem[4]]->InitialParticle.InitialColor.r=0.7f;
PGod[caParticleSystem[4]]->InitialParticle.InitialColor.g=0.3f;
PGod[caParticleSystem[4]]->InitialParticle.InitialColor.b=0.3f;
PGod[caParticleSystem[4]]->InitialParticle.FinalColor.r=0.7f;
PGod[caParticleSystem[4]]->InitialParticle.FinalColor.g=0.3f;
PGod[caParticleSystem[4]]->InitialParticle.FinalColor.b=0.3f;
PGod[caParticleSystem[4]]->Chaos.Pos=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[4]]->Chaos.Speed=Vector3d(0.0005f,0.00025f,0.0005f);
PGod[caParticleSystem[4]]->Chaos.fLifetime=200;
PGod[caParticleSystem[4]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[4]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[4]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[4]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[4]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[4]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[4]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[4]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[4]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[4]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[4]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[4]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
caParticleSystem[5]=PGod.NewSystem(500,"Data/Particles/star.bmp", 50, false);// Knight's attack fire (long flame)
PGod[caParticleSystem[5]]->InitialParticle.Pos=Vector3d(0.0f,2.5f,6.4f);
PGod[caParticleSystem[5]]->InitialParticle.Speed=Vector3d(0.016f, 0.0f,0.0f);
PGod[caParticleSystem[5]]->InitialParticle.fLifetime=2500;
PGod[caParticleSystem[5]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[5]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[5]]->InitialParticle.fInitialSize=0.5f;
PGod[caParticleSystem[5]]->InitialParticle.fFinalSize=0.8f;
PGod[caParticleSystem[5]]->InitialParticle.InitialColor.r=0.7f;
PGod[caParticleSystem[5]]->InitialParticle.InitialColor.g=0.3f;
PGod[caParticleSystem[5]]->InitialParticle.InitialColor.b=0.3f;
PGod[caParticleSystem[5]]->InitialParticle.FinalColor.r=0.7f;
PGod[caParticleSystem[5]]->InitialParticle.FinalColor.g=0.3f;
PGod[caParticleSystem[5]]->InitialParticle.FinalColor.b=0.3f;
PGod[caParticleSystem[5]]->Chaos.Pos=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[5]]->Chaos.Speed=Vector3d(0.005f,0.0005f,0.0005f);
PGod[caParticleSystem[5]]->Chaos.fLifetime=500;
PGod[caParticleSystem[5]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[5]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[5]]->Chaos.fInitialSize=0.1f;
PGod[caParticleSystem[5]]->Chaos.fFinalSize=0.1f;
PGod[caParticleSystem[5]]->Chaos.InitialColor.r=0.0f;
PGod[caParticleSystem[5]]->Chaos.InitialColor.g=0.0f;
PGod[caParticleSystem[5]]->Chaos.InitialColor.b=0.0f;
PGod[caParticleSystem[5]]->Chaos.FinalColor.r=0.0f;
PGod[caParticleSystem[5]]->Chaos.FinalColor.g=0.0f;
PGod[caParticleSystem[5]]->Chaos.FinalColor.b=0.0f;
PGod[caParticleSystem[5]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[5]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[5]]->IndividualAcceleration=true;
PGod[caParticleSystem[5]]->AccelerateTo(Vector3d(-4.15f,8.4f,6.7f));
PGod[caParticleSystem[5]]->AccelFraction=0.00005f;
PGod[caParticleSystem[5]]->BumpAtMinusXPlane=true;
PGod[caParticleSystem[5]]->XPlane=12.5f;
caParticleSystem[6]=PGod.NewSystem(50,"Data/Particles/spark.bmp", 50, false);// Gandalf Surounding particles
PGod[caParticleSystem[6]]->InitialParticle.Pos=Vector3d(13.5f,-1.0f,6.0f);
PGod[caParticleSystem[6]]->InitialParticle.Speed=Vector3d(0.0f, 0.0025f,0.0f);
PGod[caParticleSystem[6]]->InitialParticle.fLifetime=2000;
PGod[caParticleSystem[6]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[6]]->InitialParticle.fFinalAlpha=1.0f;
PGod[caParticleSystem[6]]->InitialParticle.fInitialSize=0.3f;
PGod[caParticleSystem[6]]->InitialParticle.fFinalSize=0.4f;
PGod[caParticleSystem[6]]->InitialParticle.InitialColor.r=0.6f;
PGod[caParticleSystem[6]]->InitialParticle.InitialColor.g=0.6f;
PGod[caParticleSystem[6]]->InitialParticle.InitialColor.b=0.6f;
PGod[caParticleSystem[6]]->InitialParticle.FinalColor.r=0.6f;
PGod[caParticleSystem[6]]->InitialParticle.FinalColor.g=0.6f;
PGod[caParticleSystem[6]]->InitialParticle.FinalColor.b=0.6f;
PGod[caParticleSystem[6]]->Chaos.Pos=Vector3d(2.0f,0.0f,2.0f);
PGod[caParticleSystem[6]]->Chaos.Speed=Vector3d(0.0005f,0.0005f,0.0005f);
PGod[caParticleSystem[6]]->Chaos.fLifetime=500;
PGod[caParticleSystem[6]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[6]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[6]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[6]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[6]]->Chaos.InitialColor.r=0.4f;
PGod[caParticleSystem[6]]->Chaos.InitialColor.g=0.5f;
PGod[caParticleSystem[6]]->Chaos.InitialColor.b=0.5f;
PGod[caParticleSystem[6]]->Chaos.FinalColor.r=0.4f;
PGod[caParticleSystem[6]]->Chaos.FinalColor.g=0.4f;
PGod[caParticleSystem[6]]->Chaos.FinalColor.b=0.4f;
PGod[caParticleSystem[6]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[6]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
caParticleSystem[7]=PGod.NewSystem(300,"Data/Particles/star.bmp", 50, false);// Final Knight Death
PGod[caParticleSystem[7]]->InitialParticle.Pos=Vector3d(-3.0f,1.4f,6.0f);
PGod[caParticleSystem[7]]->InitialParticle.Speed=Vector3d(0.0f, 0.0025f,0.0f);
PGod[caParticleSystem[7]]->InitialParticle.fLifetime=30000;
PGod[caParticleSystem[7]]->InitialParticle.fInitialAlpha=1.0f;
PGod[caParticleSystem[7]]->InitialParticle.fFinalAlpha=0.1f;
PGod[caParticleSystem[7]]->InitialParticle.fInitialSize=0.4f;
PGod[caParticleSystem[7]]->InitialParticle.fFinalSize=0.7f;
PGod[caParticleSystem[7]]->InitialParticle.InitialColor.r=0.9f;
PGod[caParticleSystem[7]]->InitialParticle.InitialColor.g=0.3f;
PGod[caParticleSystem[7]]->InitialParticle.InitialColor.b=0.1f;
PGod[caParticleSystem[7]]->InitialParticle.FinalColor.r=0.9f;
PGod[caParticleSystem[7]]->InitialParticle.FinalColor.g=0.3f;
PGod[caParticleSystem[7]]->InitialParticle.FinalColor.b=0.1f;
PGod[caParticleSystem[7]]->Chaos.Pos=Vector3d(2.5f,0.0f,2.5f);
PGod[caParticleSystem[7]]->Chaos.Speed=Vector3d(0.0005f,0.0005f,0.0005f);
PGod[caParticleSystem[7]]->Chaos.fLifetime=500;
PGod[caParticleSystem[7]]->Chaos.fInitialAlpha=0.0f;
PGod[caParticleSystem[7]]->Chaos.fFinalAlpha=0.0f;
PGod[caParticleSystem[7]]->Chaos.fInitialSize=0.03f;
PGod[caParticleSystem[7]]->Chaos.fFinalSize=0.02f;
PGod[caParticleSystem[7]]->Chaos.InitialColor.r=0.2f;
PGod[caParticleSystem[7]]->Chaos.InitialColor.g=0.1f;
PGod[caParticleSystem[7]]->Chaos.InitialColor.b=0.05f;
PGod[caParticleSystem[7]]->Chaos.FinalColor.r=0.2f;
PGod[caParticleSystem[7]]->Chaos.FinalColor.g=0.1f;
PGod[caParticleSystem[7]]->Chaos.FinalColor.b=0.05f;
PGod[caParticleSystem[7]]->InitialAccel=Vector3d(0.0f,0.0f,0.0f);
PGod[caParticleSystem[7]]->FinalAccel=Vector3d(0.0f,0.0f,0.0f);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -