示例#1
0
        public override void Update(float gameTime, Map map, ParticleManager pMan, Character[] c)
        {
            if (HitManager.CheckHit(this, c, pMan))
            {
                frame = 0f;
            }

            Trajectory.Y = (float)Math.Sin((double)frame * 13.0) * 150f;

            if (map.CheckParticleCol(Location))
            {
                this.frame = 0f;
                pMan.MakeExplosion(Location, 1f);
            }

            pMan.AddParticle(new Fire(Location, -Trajectory / 8f,
                                      .5f, Rand.GetRandomInt(0, 4)));
            pMan.AddParticle(new Smoke(Location,
                                       Rand.GetRandomVector2(-20f, 20f, -50f, 10f)
                                       - Trajectory / 10f,
                                       1f, .8f, .6f, 1f, .5f,
                                       Rand.GetRandomInt(0, 4)));
            pMan.AddParticle(new Heat(Location,
                                      Rand.GetRandomVector2(-20f, 20f, -50f, -10f),
                                      Rand.GetRandomFloat(.5f, 2f)));

            base.Update(gameTime, map, pMan, c);
        }
示例#2
0
        public override void Update(float gameTime,
                                    ZombieSmashers.map.Map map,
                                    ParticleManager pMan,
                                    Character[] c)
        {
            if (!netSend)
            {
                HitManager.CheckHit(this, c, pMan);

                KillMe();
            }
        }
示例#3
0
        public override void Update(float gameTime, Map map, ParticleManager pMan, Character[] c)
        {
            if (HitManager.CheckHit(this, c, pMan))
            {
                Frame = 0f;
            }

            if (map.CheckParticleCol(Location))
            {
                Frame = 0f;
                pMan.MakeBulletDust(Location, Trajectory);
            }
            base.Update(gameTime, map, pMan, c);
        }
示例#4
0
 public override void Update(float gameTime, Map map, ParticleManager pMan, Character[] c)
 {
     HitManager.CheckHit(this, c, pMan);
     KillMe();
 }