public void DrawGameObject(GameObjects.GameObject gameObject, PaintEventArgs args) { RotateForm(gameObject.RotationDegree, args, gameObject.Center); args.Graphics.DrawImage(gameObject.GetImage(), gameObject.ObjectRectangle); RotateForm(-gameObject.RotationDegree, args, gameObject.Center); }
public static bool CanPlayerEatObject(GameObjects.GameObject player, GameObjects.GameObject objectToCheck) => IsRectangleInRectangle(player.ObjectRectangle, objectToCheck.ObjectRectangle);