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

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



(sorry for my bad english, i'm from germany)

hello everbody,

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?

what do you think are the pros and cons of each aproach?

i'm an autodidact programmer. i know some well educated programmers
within the games business. all of them use c++. i think there is quite
a difference between c++ and python coding-style, so what's good in
c++ hasn't necessarily to be good in python / pygame, i guess.

thanks in advance for you opinion!

olaf