Beispiel #1
0
 private void UpdateParticles()
 {                                                                                                       //update particles to do with the player
     particleEngine.EmitterLocation = new Vector2(pos.X, pos.Y + origin.Y);                              //reset position
     particleEngine.EmitterLocation = RotateAroundOrigin(particleEngine.EmitterLocation, pos, rotation); //rotate it around the centre of the player
     particleEngine.Update((int)(speed), 30);
 }
Beispiel #2
0
 protected virtual void UpdateParticles()
 {                                                                                                       //update particles to do with the player
     particleEngine.EmitterLocation = new Vector2(pos.X, pos.Y + origin.Y);                              //reset position
     particleEngine.EmitterLocation = RotateAroundOrigin(particleEngine.EmitterLocation, pos, rotation); //rotate it around the centre of the player
     particleEngine.Update(6, 15);
 }