Tuesday, April 12, 2011

Component Based Design

After playing around in Unity, I started to noticed that I liked the style they used for representing game sprites. It didn't seem to be sub-classed because each entity contained a list of components that could be add/removed independently. I checked around the internet to find this design method to be named Component Based Design. It is very similar to how Windows Forms keeps track of its controls. Once again, I found a concept being shuffled back and forward between business programming and game programming. Naturally, I started recoding Pizza Man to use component based design rather than sub classing. It didn't take me long to get near the spot I was at previously so it times to move forward.

No comments:

Post a Comment