pygame / examples / moveit.py

Diff from to

examples/moveit.py

 #!/usr/bin/env python
 
 '''
+This is the full and final example from the Pygame Tutorial,
+"How Do I Make It Move". It creates 10 objects and animates
+them on the screen.
+
+Note it's a bit scant on error checking, but it's easy to read. :]
+Fortunately, this is python, and we needn't wrestle with a pile of
+error codes.
 '''
 
 __docformat__ = 'restructuredtext'
                                   background.format.Amask)
     scaled_buf = scaled.pixels
     scaled_pitch = scaled.pitch / scaled.format.BytesPerPixel
-    print scaled_pitch
     background_buf = background.pixels
     background_pitch = background.pitch / background.format.BytesPerPixel
-    print scaled.format.BytesPerPixel, background.format.BytesPerPixel
     for y in range(scaled.h):
         for x in range(scaled.w):
             scaled_buf[y * scaled_pitch + x] = \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.