Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. this->fSpeed = 500.0f; //move 100 units per second
  2. this->fSpeedRange = 0.0f;
  3. this->fFade = 0.5f; //particles last 0.8 - 1.2 second s
  4. this->fFadeRange = 0.3f;
  5. this->fRotate = 70.0f; //rotate 10-30 degrees in 1 second
  6. this->fRotateRange = 20.0f;
  7. this->fScale = 18.0f; //scale between 1.1 - 1.3 p/s
  8. this->fScaleRange = 6.4f;
  9. this->fAngle = 0; //shoot in all angles
  10. this->fAngleRange = 180.0f;
  11. WriteFile("ParticleEffect.paf");
  12. ReadFile("ParticleEffect.paf");
  13.  
  14. ParticleAffector particleEffect("ParticleEffect.paf");
  15. ELEMENT_PARTICLE * p = TestScene.getParticleElement(GAMBLESCENE_INDEX_PARTICLE_EFFECT);
  16. p->SetParticleAffector(particleEffect);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement