Exemplo n.º 1
0
 public Missile(Game game, Model m, CollisionType type, Vector3 start, Entity target, float speed)
     : base(game,m,type,start,Vector3.Zero,speed,50)
 {
     var exhaust = new MissileExhaustParticleSystem(game, ((Game1)Game).Content);
     ParticleEmitterManager.addParticleEmitter(new ParticleEmitter(Game, exhaust, 1000, lifeTime, getExhaustPosition));
     addComponent(new PathingChase(game, this, target, speed, true));
 }
Exemplo n.º 2
0
 public Missile(Game game, Model m, CollisionType type, Vector3 start, Vector3 target, float speed)
     : base(game,m,type,start,target,speed,50)
 {
     var exhaust = new MissileExhaustParticleSystem(game, ((Game1)Game).Content);
     ParticleEmitterManager.addParticleEmitter(new ParticleEmitter(Game, exhaust, 30, 5.0f, getExhaustPosition));
 }