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

Re: [pygame] placement of graphics code



SB wrote on 2003-08-10:

> Well, maybe it's just me, but here's my 2 cents.
>
> I like to use a Model/View/Controller design, whereby the Game class is
> part of the Model, so it doesn't know anything about blitting.  I make a
> PygameView class that handles that stuff.
>
> More info here:
> http://sjbrown.ezide.com/writing-games.html
>
One idea I'd like to try when I get around to code some game, is to
base the Model part on some generator-based event-driven framework,
perhaps SimPy.  Can anyone share some experience with using generators
to describe concurrently alive game objects?

-- 
Beni Cherniavsky <cben@tx.technion.ac.il>