//private Enemy enemy; public void GetHitByABullet(Sprite s, Particle p) { colorChange = !colorChange; //s.Rotation += 0.1f; s.Color = colorChange ? new Color(255, 0, 0) : new Color(0, 255, 0); //p.Disable(); }
public static Vector2 GetCenter(Sprite obj) { return new Vector2(obj.X + (float)obj.W/2, obj.Y + (float)obj.H/2); }
public void GetHitByASprite(Sprite s, Sprite p) { s.Rotation += 0.1f; p.Rotation += 0.1f; }