[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] your opinion: singleton-pattern vs. modules vs. classes
- To: pygame-users@xxxxxxxx
- Subject: [pygame] your opinion: singleton-pattern vs. modules vs. classes
- From: "Olaf Nowacki" <ioa@xxxxxxx>
- Date: Mon, 3 Mar 2008 17:09:12 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 03 Mar 2008 11:09:18 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=A4+V0KNQ+bpiy19on75W83wRLbcX3WujQUTiJZJcjBs=; b=Me0cDyPUS2NEB7zA2nXpq1zPhzIIbEvWCjykPNfQ2AWE6Kq+lVv2WB3mjlepaHVNBDbzsCGs+qY9rkLMO/2nobQYyUM1/VBIspHK3XmenDWvvby9FkPL6rQ/mgAHC9o6iuve8OIRQ+An/MH0AoSAHWpKnVm/urUyrYx+TDk5wfM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=JCNU0zA83FcmHx3M3PFHHJw50Jc8jENej3G2wO15K9TvgDOexfhqSKgluBk7FSB/JjMfy+oAauntCxkeAsyLdlJMVPQupaNb/xzLLK4/nmb+YXm/iatSERmsLAENB0obfxE28VHDc0REdCvMYUrYqE6MaZezPGg5GhY4fJtHjdw=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
(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