What are XNA Game Components?

Recently, while working with XNA I came across a few classes I hadn’t noticed before. It turns out that interfaces I often write myself, IUpdateable and IDrawable, already exist. When I found them I wanted to know more. They rarely appear in the MSDN code samples I’ve seen, and searching online, it appears most people are as perplexed as I am about what to do with them. So after playing around with these interfaces and their sibling the GameComponent... Read More

Adopting a Component Model for Game Development

For Colorfull one of my goals was to explore the component design pattern for game architecture. For those of you who are unfamiliar with the pattern it goes something like this: Instead of using inheritance to add new types of behavior to game objects, the component model seeks to extend a game object’s behavior by adding or removing components. Thus, if you want objects to be affected by gravity you might add the GravityComponent. In... Read More