static void Main() { using (var game = new main()) game.Run(); }
SpriteFont Font; //declare the font public GameOver(main mainPointer) //passing parameters points and game { main = mainPointer; //instantiating that this.game is the game from this class }
main main; //a reference to the class main public MainMenuScreen(main mainPointer) //passing a parameter that contains the information //from main class { main = mainPointer; }