XNA Components: Should All Game Objects Extend GameComponent or DrawableGameComponent?

I am a beginner trying to create a primitive component engine for a simple 2D game, and I wonder if everything from the β€œperson” to the β€œbox” should expand one of two. I see the benefits of causing updates and drawing, but there seems to be a lot of excess baggage for each individual object. Any thoughts would be appreciated.

In another note, I also see that a manager type class, such as a particle engine, must necessarily extend DrawableGameComponent.

+3
source share
1 answer

. , , .

Update Draw? ... XNA GameComponents . , , , !

+2

All Articles