Beispiel #1
0
 public void Update(float es_)
 {
     particle.Update(es_);
     for (int i = times.Count - 1; i >= 0; i--)
     {
         times[i] -= es_;
         pos[i]   += mov[i] * es_;
         if (times[i] < 0)
         {
             times.RemoveAt(i); pos.RemoveAt(i); mov.RemoveAt(i);
         }
     }
 }
Beispiel #2
0
        public virtual void Update(float es_)
        {
            prevmov = mov;

            currentTex.Update(es_);
            pos += mov;
            mov  = Vector2.Zero;
            if (hp <= 0)
            {
                hp = 0;
                if (!isDead)
                {
                    isDead  = true;
                    isSolid = false;
                }
            }
        }