I'm making a Level.cs class that should take a background image (texture2d) as a parameter for the Level class constructor. But it wont accept the variable 'back'.. What do I do?
public Level(Texture2D back ,ContentManager content, EventHandler ScreenEvent, Microsoft.Xna.Framework.Game game) : base(ScreenEvent)
{
background = content.Load<Texture2D>(back);
backgroundVector = new Vector2(-1150, 0);
velocity = 5.0f;
ground = 508;
graphics = new GraphicsDeviceManager(game);
}
Best regards Danny.