How can I selectively update XNA GameComponents?
Posted
by
Bill
on Game Development
See other posts from Game Development
or by Bill
Published on 2011-02-05T16:12:23Z
Indexed on
2011/02/05
23:33 UTC
Read the original article
Hit count: 326
XNA
|design-patterns
I have a small 2D game I'm working on in XNA. So far, I have a player-controlled ship that operates on vector thrust and is terribly fun to spin around in circles. I've implemented this as a DrawableGameComponent and registered it with the game using game.Components.Add(this) in the Ship object constructor.
How can I implement features like pausing and a menu system with my current implementation? Is it possible to set certain GameComponents to not update?
Is this something for which I should even be using a DrawableGameComponent? If not, what are more appropriate uses for this?
© Game Development or respective owner