[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Code review for Pygame2 example
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Code review for Pygame2 example
- From: Evan Kroske <e.kroske@xxxxxxxxx>
- Date: Tue, 2 Mar 2010 13:12:24 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 02 Mar 2010 13:13:48 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=kp0AundjaCw8f4f76HnRTJe/CxLmzGuWtedYthWsH0I=; b=EeGQ7P8CYOtT4v7CPLtdpLkbiO4ODDiAavZMX35zNfoWiBGWTSOe7gAwQMd2Pl3pcs tbMSKt6EVBZoyTcDtSwBTX5ulYdyJUs43abJpOSiITonC1379EdV0UYQpQCkxumLjI71 z8wEfbdKmYK0bP78WKu8c5GpF1ihGDPa12798=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k8XByJxlQHfurfECxn8Cp+0JpxxV0/MOIlaA2tj+vulgVKkp/B6nrp9I/f/Go7i8sv BqgJO6Ga26LWqyY62R0RmPRFXGt9e7FFuvsmBn8Jk6tlG0DEKsxIQWMHuN5RQ3j0eL1x olo+cPqL0SADgQ/h2JB3rkct9/gH1LuEtnQWA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Last year, I tried to create a large example game to demonstrate several of Pygame2's features. In retrospect, I should have created lots of independent examples, each demonstrating one function of Pygame2, but I chose instead to show them all at once. Here's the resulting "example": http://pygame2examples.googlecode.com/files/pygame2alien.tar.gz. It's based on the oldalien.py example from the original Pygame, but I tried to abstract the graphics from the rest of the game. The result is a quagmire of poorly-applied design patterns; nevertheless, it runs and shows off several features of Pygame2. Should I try to salvage it by tying it to one graphical skin, or should I ditch it?
--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.