/// <summary> /// Adds a tiled background image that will be scaled to fit the given Rectangle area /// </summary> /// <param name="imageName">The image tile to use</param> /// <param name="tileArea">Useful in conjunction with AddWalls(), which returns a Rectangle</param> public void AddBackgroundImage(string imageName, Rectangle tileArea) { BackgroundGameComponent background = new BackgroundGameComponent(this, imageName, tileArea); Components.Add(background); }
/// <summary> /// Adds a tiled background image that will be scaled to fit the given Rectangle area /// </summary> /// <param name="imageName">The image tile to use</param> /// <param name="tileArea">Useful in conjunction with AddWalls(), which returns a Rectangle</param> public void AddBackgroundImage(string imageName, Rectangle tileArea) { BackgroundGameComponent background = new BackgroundGameComponent(this, imageName, tileArea); Components.Add(background); }