• Advertisement
Sign in to follow this  

Game Componets in Monogame

This topic is 818 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to teach myself game programming and I have run into a wall. I'm using an older XNA book (http://shop.oreilly.com/product/0636920013709.do) but using the MONOGAME framework. The book tells me to create a game components, but I don't think MONOGAME has that option. I'm sure exactly where to go to next considering XNA is no longer supported and their aren't a lot of resources on MONOGAME.

 

(I'm using visual studio 2015 and I download the Monogame 3.4 from their website if that information is useful)

Share this post


Link to post
Share on other sites
Advertisement

Monogame works basically the same as XNA, so yes it does support GameComponents. In your Game.cs class, just add:

 

this.GameComponents.Add(new MyGameComponent());

 

Where MyGameComponent is your own Component.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement