static void Main(string[] args) { Console.WriteLine("Console game has started..."); MonogameTestMain.MonogameTestMain main = new MonogameTestMain.MonogameTestMain(); ConsoleResponder responder = new ConsoleResponder(); main.Run(responder); Console.WriteLine("Console game has ended..."); Console.ReadKey(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); //loads smiley.png into smileyImage smileyImage = Content.Load <Texture2D>("smiley"); smileyBlinkImage = Content.Load <Texture2D>("smileyBlink"); curSmileyImage = smileyImage; main = new MonogameTestMain.MonogameTestMain(); responder = new MonoResponder(this); mainThread = new Thread(new ThreadStart(mainThreadStart)); mainThread.Start(); }