How would MVVM be for games?

Posted by Benny Jobigan on Stack Overflow See other posts from Stack Overflow or by Benny Jobigan
Published on 2010-03-27T14:51:08Z Indexed on 2010/03/27 14:53 UTC
Read the original article Hit count: 239

Filed under:
|
|
|
|

Particularly for 2d games, and particularly silverlight/wpf games.

If you think about it, you can divide a game object into its view (the graphic on the screen) and a view-model/model (the state, ai, and other data for the object). In silverlight, it seems common to make each object a user control, putting the model and view into a single object. I suppose the advantage of this is simplicity. But, perhaps it's less clean or has some disadvantages in terms of the underlying "game engine".

What are your thoughts on this matter? What are some advantages and disadvantages of using the MVVM pattern for game development? How about performance? All thoughts are welcome.

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about c#