source: ubervaders/notes.txt @ 252

Revision 252, 1.1 KB checked in by shiml, 19 months ago (diff)

space invaders with ueberwachung. german umlaut ü.

Line 
1Jim Brooks
2http://www.jimbrooks.org
32004/08
4Notes about Python implementation of Space Invaders.
5
6- Developed using Python 2.3.4, PyGame, SDL.
7
8- As a testament to how Python can speed software development
9  and how easy PyGame is to use, this program was up-and-running
10  in only 2 days starting from scratch.
11
12- Animation is driven by a timer and based on a list of objects
13  (player, aliens, missiles).
14
15- Aliens are divided into "columns".
16  Only the alien at the bottom of column can fire.
17
18- Alien and missile objects will temporarily become invalid
19  (.valid = False) and will be perodically pruned.
20  The player object stays valid.
21  Invalid objects should be excluded from rendering and
22  collision detection.
23
24- An sprite object's .hit is decremented every tick.
25  When an object is struck, .hit is assigned a value > 0.
26  The object becomes dead at the moment .hit transitions from 0 to 1.
27
28- The first for event line works OK on Mandrake 8.1,
29  but timer events simply stop after about 2 seconds on Redhat 8.
30    #for event in pygame.event.get():
31    for event in [ pygame.event.wait() ]:
Note: See TracBrowser for help on using the repository browser.