Esempio n. 1
0
        public void Update(List <Inpc> npcs)
        {
            if (Tint < 1f)
            {
                Tint += Game1.Delta / 100;
            }
            if (Tint > 1f)
            {
                Tint = 1f;
            }

            if (Health <= 0)
            {
                Kill();
            }

            StunLeft.Update();
            Controling();

            _resolver.move(ref _velocity, new Vector2(2f), Boundary, 0f, new Vector2(0.2f), new Vector2(0.02f), new Vector2(0.3f), Game1.mapLive.MapMovables);

            if (_resolver.VerticalPressure == true)
            {
                Kill();
            }

            WalkingDrawingData();
        }
Esempio n. 2
0
 new public void Stun()
 {
     StunLeft.Reset();
 }