Advertisement

Game Componets in Monogame

Started by January 28, 2016 01:58 AM
1 comment, last by heroics 8 years, 10 months ago

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)

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.

Advertisement

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

This topic is closed to new replies.

Advertisement