So I got my game in another class and my main menu in another class.
This is the update method in my Main menu class
MouseState mouse = Mouse.GetState();
switch (CurrentGameState)
{
case GameState.MainMenu:
if (btnPlay.isClicked == true) CurrentGameState = GameState.Playing;
btnPlay.Update(mouse);
break;
case GameState.Playing:
break;
}
base.Update(gameTime);
This is the draw method in my Main menu class
spriteBatch.Begin();
switch (CurrentGameState)
{
case GameState.MainMenu:
spriteBatch.Draw(Content.Load<Texture2D> ("MainMenu"), new Rectangle (0,0, screenWidth, screenHeight),Color.White);
btnPlay.Draw(spriteBatch);
break;
case GameState.Playing:
break;
}
spriteBatch.End();
But now I don't know how to link/call the actual game file.. Would someone be able to help me with this please?