Jump to content
  • Advertisement
Sign in to follow this  
heroics

Game Componets in Monogame

This topic is 1050 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

Thank you dancingmad. I appreciate the answer. Now I can get back to coding. Thank you for helping me out.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!