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

Re: [pygame] your opinion: singleton-pattern vs. modules vs. classes



Hi,

On Mon, Mar 03, 2008 at 05:09:12PM +0100, Olaf Nowacki wrote:
> probably most of you use an mvc aproach for writing games with pygame.
> i would like to know how you implement these (mvc-) objects:
> 
> - as classes
> - as modules or
> - as singleton-pattern classes?

Classes.  I see no point to add a restriction of at most one game in a
Python process.

Regards,
Marius Gedminas
-- 
Computers are not intelligent.  They only think they are.

Attachment: signature.asc
Description: Digital signature