[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] I have a quick question... again...




On Jun 16, 2007, at 8:56 AM, Laura Creighton wrote:
[..]

If you use Model-View-Controller like separation of your code,
None.  All your changes will be in the drawing.

I'm curious how many of you actually employ MVC using pygame, since the library encourages mixing the model and view via sprites. I'd be interested to see a "canonical" example of a pygame that uses MVC.

MVC has strong advantages when you need to present and interact with the same data in multiple ways, but often in simple games data is only presented a single way. Using MVC has advantages for unit testing as well, but how many pygames actually employ unit tests in a meaningful way? Also, is unit testing something that the gaming industry at large embraces?

I'm curious how widespread these practices really are in the pygame community, not to make a point for or against them, but to better understand theory vs. practice.

-Casey