예제 #1
0
        public override void Update()
        {
            float y = Position.Y;

            if (y < -100)
            {
                Engine_Game.Remove(this);
            }
            ScaleX = ScaleY = 1 + Math.Abs(0.001f * (600 - Position.Y));
        }
예제 #2
0
 private void CollisionWithHereoTest()
 {
     Opacity -= 1;
     if (ScaleX < 0)
     {
         ScaleX   += 0.01f;
         Rotation -= 0.02f;
     }
     else
     {
         ScaleX   -= 0.01f;
         Rotation += 0.03f;
     }
     ScaleY -= 0.01f;
     if (Opacity <= 0)
     {
         Engine_Game.Remove(this);
     }
 }