Commits

Paul Craven committed 4cff6c5

Sprite bug fixes.

  • Participants
  • Parent commits cadd158

Comments (0)

Files changed (3)

File pgreloaded.wpu

         None,
         1,
         0)}}
-debug.err-values = {loc('examples/draw_module_example.py'): {}}
+debug.err-values = {loc('examples/draw_module_example.py'): {},
+                    loc('examples/pygamewrapper/sprite_collect_blocks.py'): {},
+                    loc('setup.py'): {}}
 debug.recent-run-args = {loc('setup.py'): ['install']}
 debug.run-args = {loc('setup.py'): 'install'}
 debug.show-args-dialog = {loc('../WebServer/CMSC150BookHTML/python_examples/bitmapped_graphics.py'): False,
                           loc('examples/pygamewrapper/bitmapped_graphics.py'): False,
                           loc('examples/pygamewrapper/bounce_ball_with_paddle.py'): False,
                           loc('examples/pygamewrapper/draw_module_example.py'): False,
+                          loc('examples/pygamewrapper/sprite_collect_blocks.py'): False,
                           loc('pygamewrapper/__init__.py'): False,
                           loc('pygamewrapper/sprite/__init__.py'): False,
                           loc('setup.py'): False}
+debug.var-col-widths = [0.43467933491686461,
+                        0.56532066508313539]
 guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
                             'windows': [{'name': 'rSxuJnppc5C96BGvWCcyQQ3CaE'\
         'NnTnsA',
                                {'tree-state': {'file-sort-method': 'by name',
         'list-files-first': False,
         'tree-states': {'deep': {'column-widths': [1.0],
-                                 'expanded-nodes': [(1,),
-        (3,),
+                                 'expanded-nodes': [(3,),
         (3,
          0),
         (4,),
         (5,
          0),
         (5,
-         1),
-        (5,
          3),
-        (5,
-         5),
-        (5,
-         7),
-        (5,
-         8),
-        (5,
-         9),
         (6,)],
-                                 'selected-nodes': [(3,
-        0,
-        9)],
-                                 'top-node': (3,
-        9)}},
+                                 'selected-nodes': [(5,
+        3,
+        0)],
+                                 'top-node': (4,
+        7)}},
         'tree-style': 'deep'}}),
                               ('snippets',
                                'tall',
                               ('browser',
                                'tall',
                                0,
-                               {'all_tree_states': {loc('../test.py'): {'col'\
-        'umn-widths': [1.0],
+                               {'all_tree_states': {u'By Module': {'column-w'\
+        'idths': [1.0],
         'expanded-nodes': [],
-        'selected-nodes': [],
+        'selected-nodes': [None],
         'top-node': None},
-        u'By Module': {'column-widths': [1.0],
-                       'expanded-nodes': [],
-                       'selected-nodes': [None],
-                       'top-node': None},
         loc('../WebServer/CMSC150BookHTML/python_examples/sprite_collect_blocks.py'): {''\
         'column-widths': [1.0],
         'expanded-nodes': [],
         'top-node': [('generic attribute',
                       loc('../pysdl/examples/draw_module_example.py'),
                       'black')]},
+        loc('../test.py'): {'column-widths': [1.0],
+                            'expanded-nodes': [],
+                            'selected-nodes': [],
+                            'top-node': None},
         loc('../../pygame_dev/professor-cravens-pygame-branch/docs/reST/ref/code_examples/joystick_calls.py'): {''\
         'column-widths': [1.0],
         'expanded-nodes': [],
         'top-node': [('class def',
                       loc('../../../../Python33/Lib/site-packages/pygame2/time/__init__.py'),
                       'Clock')]},
+        loc('../../../../Python33/Lib/site-packages/pygamewrapper/draw/__init__.py'): {''\
+        'column-widths': [1.0],
+        'expanded-nodes': [],
+        'selected-nodes': [],
+        'top-node': [('function def',
+                      loc('../../../../Python33/Lib/site-packages/pygamewrapper/draw/__init__.py'),
+                      'aaline')]},
+        loc('unknown:<untitled> #15'): {'column-widths': [1.0],
+        'expanded-nodes': [],
+        'selected-nodes': [],
+        'top-node': [('function def',
+                      loc('unknown:<untitled> #14'),
+                      'f')]},
+        u'All Classes': {'column-widths': [1.0],
+                         'expanded-nodes': [],
+                         'selected-nodes': [None],
+                         'top-node': None},
         loc('../../../../Python33/Lib/site-packages/pygamewrapper/__init__.py'): {''\
         'column-widths': [1.0],
         'expanded-nodes': [],
         'top-node': [('generic attribute',
                       loc('../../../../Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
                       'current_window')]},
-        loc('../../../../Python33/Lib/site-packages/pygamewrapper/draw/__init__.py'): {''\
-        'column-widths': [1.0],
-        'expanded-nodes': [],
-        'selected-nodes': [],
-        'top-node': [('function def',
-                      loc('../../../../Python33/Lib/site-packages/pygamewrapper/draw/__init__.py'),
-                      'aaline')]},
         loc('../../../../Python33/Lib/site-packages/pygamewrapper/event/__init__.py'): {''\
         'column-widths': [1.0],
         'expanded-nodes': [],
         'top-node': [('function def',
                       loc('../../../../Python33/Lib/site-packages/pygamewrapper/image/__init__.py'),
                       'load')]},
-        loc('unknown:<untitled> #1'): {'column-widths': [1.0],
-                                       'expanded-nodes': [],
-                                       'selected-nodes': [],
-                                       'top-node': None},
-        loc('unknown:<untitled> #3'): {'column-widths': [1.0],
-                                       'expanded-nodes': [],
-                                       'selected-nodes': [],
-                                       'top-node': [('function def',
-        loc('unknown:<untitled> #2'),
-        'f')]},
-        loc('unknown:<untitled> #5'): {'column-widths': [1.0],
-                                       'expanded-nodes': [],
-                                       'selected-nodes': [],
-                                       'top-node': [('generic attribute',
-        loc('unknown:<untitled> #4'),
-        'black')]},
-        u'All Classes': {'column-widths': [1.0],
-                         'expanded-nodes': [],
-                         'selected-nodes': [None],
-                         'top-node': None}},
+        loc('unknown:<untitled> #17'): {'column-widths': [1.0],
+        'expanded-nodes': [],
+        'selected-nodes': [],
+        'top-node': [('generic attribute',
+                      loc('unknown:<untitled> #16'),
+                      'black')]},
+        loc('unknown:<untitled> #13'): {'column-widths': [1.0],
+        'expanded-nodes': [],
+        'selected-nodes': [],
+        'top-node': None}},
                                 'browse_mode': u'Current Module',
                                 'follow-selection': False,
                                 'sort_mode': 'Alphabetically',
                       {'attrib-starts': [],
                        'first-line': 0,
                        'folded-linenos': [],
-                       'sel-line': 9,
-                       'sel-line-start': 372,
-                       'selection_end': 372,
-                       'selection_start': 372}),
+                       'sel-line': 1,
+                       'sel-line-start': 21,
+                       'selection_end': 21,
+                       'selection_start': 21}),
                      ('debug-probe',
                       'wide',
                       2,
                       {'node-states': [('symbolic',
         ['myArray']),
                                        ('eval',
-        'item')],
-                       'tree-state': {'column-widths': [0.43507972665148065,
-        0.56492027334851935],
-                                      'expanded-nodes': [],
-                                      'selected-nodes': [],
-                                      'top-node': (0,)}})],
-        'primary_view_state': {'editor_states': {'bookmarks': ([(loc('file:C:/Python33/Lib/site-packages/pygamewrapper/sprite/__init__.py'),
-        {'attrib-starts': [('AbstractGroup',
-                            283),
-                           ('AbstractGroup.draw',
-                            463)],
-         'first-line': 459,
+        'item'),
+                                       ('eval',
+        'image')],
+                       'tree-state': {'column-widths': [0.44363636363636366,
+        0.55636363636363639],
+                                      'expanded-nodes': [(2,)],
+                                      'selected-nodes': [(0,)],
+                                      'top-node': (2,
+        4)}})],
+        'primary_view_state': {'editor_states': {'bookmarks': ([[loc('examples/pygamewrapper/draw_module_example.py'),
+        {'attrib-starts': [],
+         'first-line': 0,
          'folded-linenos': [],
-         'sel-line': 474,
-         'sel-line-start': 17111,
-         'selection_end': 17111,
-         'selection_start': 17111},
-        1364266136.1400001),
-        (loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
+         'sel-line': 26,
+         'sel-line-start': 589,
+         'selection_end': 594,
+         'selection_start': 594},
+        1365690826.5869999],
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
+         {'attrib-starts': [],
+          'first-line': 7,
+          'folded-linenos': [],
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365690831.937),
+        (loc('file:c:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
+         {'attrib-starts': [('create_texture',
+                             258)],
+          'first-line': 247,
+          'folded-linenos': [],
+          'sel-line': 264,
+          'sel-line-start': 9757,
+          'selection_end': 9757,
+          'selection_start': 9757},
+         1365690839.464),
+        (loc('pygamewrapper/display/__init__.py'),
          {'attrib-starts': [('Window',
                              13),
                             ('Window.blit',
                              27)],
-          'first-line': 21,
+          'first-line': 25,
           'folded-linenos': [],
-          'sel-line': 39,
-          'sel-line-start': 1062,
-          'selection_end': 1062,
-          'selection_start': 1062},
-         1364266139.911),
-        (loc('setup.py'),
-         {'attrib-starts': [],
-          'first-line': 30,
+          'sel-line': 41,
+          'sel-line-start': 1161,
+          'selection_end': 1234,
+          'selection_start': 1234},
+         1365690866.7720001),
+        (loc('pygamewrapper/image/__init__.py'),
+         {'attrib-starts': [('load',
+                             20)],
+          'first-line': 0,
           'folded-linenos': [],
-          'sel-line': 47,
-          'sel-line-start': 1519,
-          'selection_end': 1554,
-          'selection_start': 1554},
-         1364266239.7449999),
-        (loc('pygamewrapper/sprite/__init__.py'),
+          'sel-line': 26,
+          'sel-line-start': 686,
+          'selection_end': 810,
+          'selection_start': 722},
+         1365690890.51),
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
          {'attrib-starts': [],
-          'first-line': 255,
+          'first-line': 7,
           'folded-linenos': [],
-          'sel-line': 90,
-          'sel-line-start': 4305,
-          'selection_end': 4305,
-          'selection_start': 4305},
-         1364266240.665),
-        (loc('pygamewrapper/__init__.py'),
-         {'attrib-starts': [('Surface',
-                             60),
-                            ('Surface.__init__',
-                             67)],
-          'first-line': 62,
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365690937.901),
+        (loc('pygamewrapper/display/__init__.py'),
+         {'attrib-starts': [('Window',
+                             13),
+                            ('Window.blit',
+                             27)],
+          'first-line': 25,
           'folded-linenos': [],
-          'sel-line': 70,
-          'sel-line-start': 1517,
-          'selection_end': 1524,
-          'selection_start': 1524},
-         1364266246.9419999),
+          'sel-line': 41,
+          'sel-line-start': 1219,
+          'selection_end': 1222,
+          'selection_start': 1222},
+         1365690941.6559999),
         (loc('setup.py'),
          {'attrib-starts': [],
           'first-line': 30,
           'sel-line-start': 1519,
           'selection_end': 1554,
           'selection_start': 1554},
-         1364266287.069),
-        (loc('examples/pygamewrapper/draw_module_example.py'),
-         {'attrib-starts': [],
-          'first-line': 0,
-          'folded-linenos': [],
-          'sel-line': 26,
-          'sel-line-start': 589,
-          'selection_end': 594,
-          'selection_start': 594},
-         1364266317.7260001),
-        (loc('pygamewrapper/__init__.py'),
-         {'attrib-starts': [('Surface',
-                             60),
-                            ('Surface.__init__',
-                             67)],
-          'first-line': 62,
-          'folded-linenos': [],
-          'sel-line': 70,
-          'sel-line-start': 1517,
-          'selection_end': 1524,
-          'selection_start': 1524},
-         1364266318.4530001),
-        (loc('examples/pygamewrapper/bounce_ball_with_paddle.py'),
+         1365690959.8239999),
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
          {'attrib-starts': [],
-          'first-line': 203,
-          'folded-linenos': [],
-          'sel-line': 225,
-          'sel-line-start': 7151,
-          'selection_end': 7151,
-          'selection_start': 7151},
-         1364266326.477),
-        (loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
-         {'attrib-starts': [('render_copy',
-                             680)],
-          'first-line': 671,
+          'first-line': 7,
           'folded-linenos': [],
-          'sel-line': 693,
-          'sel-line-start': 26529,
-          'selection_end': 26529,
-          'selection_start': 26529},
-         1364266328.687),
-        (loc('examples/pygamewrapper/bounce_ball_with_paddle.py'),
-         {'attrib-starts': [],
-          'first-line': 203,
-          'folded-linenos': [],
-          'sel-line': 225,
-          'sel-line-start': 7151,
-          'selection_end': 7151,
-          'selection_start': 7151},
-         1364266341.9879999),
-        (loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
-         {'attrib-starts': [('render_copy',
-                             680)],
-          'first-line': 671,
-          'folded-linenos': [],
-          'sel-line': 693,
-          'sel-line-start': 26529,
-          'selection_end': 26529,
-          'selection_start': 26529},
-         1364266344.608),
-        (loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
-         {'attrib-starts': [('render_copy',
-                             680)],
-          'first-line': 671,
-          'folded-linenos': [],
-          'sel-line': 693,
-          'sel-line-start': 26529,
-          'selection_end': 26529,
-          'selection_start': 26529},
-         1364266346.421),
-        (loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365690964.098),
+        [loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
          {'attrib-starts': [('Window',
                              13),
                             ('Window.blit',
                              27)],
           'first-line': 21,
           'folded-linenos': [],
-          'sel-line': 39,
-          'sel-line-start': 1062,
-          'selection_end': 1062,
-          'selection_start': 1062},
-         1364266347.9879999),
-        (loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
-         {'attrib-starts': [('render_copy',
-                             680)],
-          'first-line': 671,
+          'sel-line': 40,
+          'sel-line-start': 1091,
+          'selection_end': 1252,
+          'selection_start': 1094},
+         1365690966.652],
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
+         {'attrib-starts': [],
+          'first-line': 7,
           'folded-linenos': [],
-          'sel-line': 693,
-          'sel-line-start': 26529,
-          'selection_end': 26529,
-          'selection_start': 26529},
-         1364266354.451),
-        (loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365690977.223),
+        (loc('pygamewrapper/display/__init__.py'),
          {'attrib-starts': [('Window',
                              13),
-                            ('Window.fill',
-                             22)],
-          'first-line': 21,
+                            ('Window.blit',
+                             27)],
+          'first-line': 25,
           'folded-linenos': [],
-          'sel-line': 22,
-          'sel-line-start': 538,
-          'selection_end': 561,
-          'selection_start': 561},
-         1364266492.388),
+          'sel-line': 40,
+          'sel-line-start': 1091,
+          'selection_end': 1163,
+          'selection_start': 1163},
+         1365690981.4059999),
         (loc('setup.py'),
          {'attrib-starts': [],
           'first-line': 30,
           'sel-line-start': 1519,
           'selection_end': 1554,
           'selection_start': 1554},
-         1364266515.2709999),
+         1365691000.8759999),
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
+         {'attrib-starts': [],
+          'first-line': 7,
+          'folded-linenos': [],
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365691003.855),
         [loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'),
          {'attrib-starts': [('Window',
                              13),
-                            ('Window.fill',
-                             22)],
+                            ('Window.blit',
+                             27)],
           'first-line': 21,
           'folded-linenos': [],
-          'sel-line': 22,
-          'sel-line-start': 538,
-          'selection_end': 561,
-          'selection_start': 561},
-         1364266520.273],
+          'sel-line': 40,
+          'sel-line-start': 1091,
+          'selection_end': 1163,
+          'selection_start': 1163},
+         1365691006.388],
+        (loc('examples/pygamewrapper/sprite_collect_blocks.py'),
+         {'attrib-starts': [],
+          'first-line': 7,
+          'folded-linenos': [],
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365691033.5829999),
+        (loc('pygamewrapper/image/__init__.py'),
+         {'attrib-starts': [('load',
+                             20)],
+          'first-line': 0,
+          'folded-linenos': [],
+          'sel-line': 26,
+          'sel-line-start': 686,
+          'selection_end': 810,
+          'selection_start': 722},
+         1365691034.2),
+        (loc('pygamewrapper/display/__init__.py'),
+         {'attrib-starts': [('Window',
+                             14),
+                            ('Window.blit',
+                             28)],
+          'first-line': 35,
+          'folded-linenos': [],
+          'sel-line': 41,
+          'sel-line-start': 1113,
+          'selection_end': 1192,
+          'selection_start': 1192},
+         1365691034.8269999),
         (loc('setup.py'),
          {'attrib-starts': [],
           'first-line': 30,
           'sel-line-start': 1519,
           'selection_end': 1554,
           'selection_start': 1554},
-         1364266526.5710001),
-        [loc('examples/pygamewrapper/bounce_ball_with_paddle.py'),
+         1365691050.194),
+        [loc('examples/pygamewrapper/sprite_collect_blocks.py'),
          {'attrib-starts': [],
-          'first-line': 203,
+          'first-line': 7,
           'folded-linenos': [],
-          'sel-line': 225,
-          'sel-line-start': 7151,
-          'selection_end': 7151,
-          'selection_start': 7151},
-         1364267092.408]],
+          'sel-line': 105,
+          'sel-line-start': 3086,
+          'selection_end': 3086,
+          'selection_start': 3086},
+         1365691053.362]],
         19),
-        'current-loc': loc('examples/pygamewrapper/bounce_ball_with_paddle.py'),
-        'editor-states': {loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'): {''\
-        'attrib-starts': [('render_copy',
-                           680)],
-        'first-line': 671,
-        'folded-linenos': [],
-        'sel-line': 693,
-        'sel-line-start': 26529,
-        'selection_end': 26529,
-        'selection_start': 26529},
-                          loc('examples/pygamewrapper/bitmapped_graphics.py'): {''\
-        'attrib-starts': [],
-        'first-line': 15,
-        'folded-linenos': [],
-        'sel-line': 31,
-        'sel-line-start': 815,
-        'selection_end': 815,
-        'selection_start': 815},
-                          loc('examples/pygamewrapper/bounce_ball_with_paddle.py'): {''\
-        'attrib-starts': [],
-        'first-line': 203,
-        'folded-linenos': [],
-        'sel-line': 225,
-        'sel-line-start': 7151,
-        'selection_end': 7151,
-        'selection_start': 7151},
-                          loc('examples/pygamewrapper/draw_module_example.py'): {''\
+        'current-loc': loc('examples/pygamewrapper/sprite_collect_blocks.py'),
+        'editor-states': {loc('examples/pygamewrapper/sprite_collect_blocks.py'): {''\
         'attrib-starts': [],
-        'first-line': 0,
+        'first-line': 78,
         'folded-linenos': [],
-        'sel-line': 26,
-        'sel-line-start': 589,
-        'selection_end': 594,
-        'selection_start': 594},
+        'sel-line': 66,
+        'sel-line-start': 1969,
+        'selection_end': 1996,
+        'selection_start': 1996},
                           loc('pygamewrapper/__init__.py'): {'attrib-starts': [(''\
         'Surface',
         60),
-        ('Surface.__init__',
-         67)],
-        'first-line': 62,
-        'folded-linenos': [],
-        'sel-line': 70,
-        'sel-line-start': 1517,
-        'selection_end': 1524,
-        'selection_start': 1524},
+        ('Surface.fill',
+         74)],
+        'first-line': 40,
+        'folded-linenos': [],
+        'sel-line': 82,
+        'sel-line-start': 1933,
+        'selection_end': 1933,
+        'selection_start': 1933},
+                          loc('pygamewrapper/display/__init__.py'): {'attrib'\
+        '-starts': [('Window',
+                     14),
+                    ('Window.blit',
+                     28)],
+        'first-line': 35,
+        'folded-linenos': [],
+        'sel-line': 41,
+        'sel-line-start': 1113,
+        'selection_end': 1192,
+        'selection_start': 1192},
                           loc('pygamewrapper/image/__init__.py'): {'attrib-s'\
-        'tarts': [],
+        'tarts': [('load',
+                   20)],
         'first-line': 0,
         'folded-linenos': [],
-        'sel-line': 5,
-        'sel-line-start': 113,
-        'selection_end': 113,
-        'selection_start': 113},
+        'sel-line': 26,
+        'sel-line-start': 686,
+        'selection_end': 810,
+        'selection_start': 722},
                           loc('pygamewrapper/sprite/__init__.py'): {'attrib-'\
         'starts': [],
-        'first-line': 255,
+        'first-line': 78,
         'folded-linenos': [],
-        'sel-line': 90,
-        'sel-line-start': 4305,
-        'selection_end': 4305,
-        'selection_start': 4305},
+        'sel-line': 89,
+        'sel-line-start': 4274,
+        'selection_end': 4286,
+        'selection_start': 4286},
                           loc('setup.py'): {'attrib-starts': [],
         'first-line': 30,
         'folded-linenos': [],
         'sel-line': 47,
         'sel-line-start': 1519,
         'selection_end': 1554,
-        'selection_start': 1554}},
+        'selection_start': 1554},
+                          loc('file:c:/Python33/Lib/site-packages/pygame2/sdl/render.py'): {''\
+        'attrib-starts': [('create_texture',
+                           258)],
+        'first-line': 247,
+        'folded-linenos': [],
+        'sel-line': 264,
+        'sel-line-start': 9757,
+        'selection_end': 9757,
+        'selection_start': 9757}},
         'has-focus': True,
         'locked': False},
-                               'open_files': [u'examples/pygamewrapper/bitmapped_graphics.py',
-        u'pygamewrapper/image/__init__.py',
-        u'pygamewrapper/sprite/__init__.py',
-        u'examples/pygamewrapper/draw_module_example.py',
+                               'open_files': [u'pygamewrapper/sprite/__init__.py',
         u'pygamewrapper/__init__.py',
+        u'pygamewrapper/image/__init__.py',
+        u'pygamewrapper/display/__init__.py',
         u'setup.py',
-        u'examples/pygamewrapper/bounce_ball_with_paddle.py']},
+        u'examples/pygamewrapper/sprite_collect_blocks.py']},
         'saved_notebook_display': None,
         'split_percents': {0: 0.40923076923076923},
         'splits': 2,
                  'splits': 2,
                  'tab_location': 'left',
                  'user_data': {}},
-        'window-alloc': (1679,
-                         31,
-                         1618,
-                         870)}]}
-guimgr.recent-documents = [loc('examples/pygamewrapper/bounce_ball_with_paddle.py'),
+        'window-alloc': (591,
+                         197,
+                         1011,
+                         715)}]}
+guimgr.recent-documents = [loc('examples/pygamewrapper/sprite_collect_blocks.py'),
                            loc('setup.py'),
-                           loc('file:C:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
-                           loc('pygamewrapper/__init__.py'),
-                           loc('examples/pygamewrapper/draw_module_example.py'),
-                           loc('pygamewrapper/sprite/__init__.py'),
+                           loc('pygamewrapper/display/__init__.py'),
                            loc('pygamewrapper/image/__init__.py'),
-                           loc('examples/pygamewrapper/bitmapped_graphics.py')]
+                           loc('file:c:/Python33/Lib/site-packages/pygame2/sdl/render.py'),
+                           loc('pygamewrapper/__init__.py')]
 guimgr.visual-state = {loc('file:C:/Python33/Lib/site-packages/pygame2/openal/al.py'): {''\
         'attrib-starts': [('_raise_error_or_continue',
                            130)],
         'selection_end': 1091,
         'selection_start': 1062},
                        loc('file:C:/Python33/Lib/site-packages/pygamewrapper/display/__init__.py'): {''\
-        'attrib-starts': [('Window',
-                           13),
-                          ('Window.fill',
-                           22)],
-        'first-line': 21,
-        'folded-linenos': [],
-        'sel-line': 22,
-        'sel-line-start': 538,
-        'selection_end': 561,
-        'selection_start': 561},
-                       loc('file:C:/Python33/Lib/site-packages/pygamewrapper/image/__init__.py'): {''\
         'attrib-starts': [],
         'first-line': 0,
         'folded-linenos': [],
-        'sel-line': 1,
-        'sel-line-start': 20,
-        'selection_end': 41,
-        'selection_start': 27},
+        'sel-line': 5,
+        'sel-line-start': 111,
+        'selection_end': 111,
+        'selection_start': 111},
                        loc('file:C:/Python33/Lib/site-packages/pygamewrapper/joystick/__init__.py'): {''\
         'attrib-starts': [('get_count',
                            2)],
                            283),
                           ('AbstractGroup.draw',
                            463)],
-        'first-line': 459,
+        'first-line': 445,
         'folded-linenos': [],
         'sel-line': 474,
         'sel-line-start': 17111,
         'sel-line-start': 145,
         'selection_end': 175,
         'selection_start': 175},
+                       loc('examples/pygamewrapper/bitmapped_graphics.py'): {''\
+        'attrib-starts': [],
+        'first-line': 15,
+        'folded-linenos': [],
+        'sel-line': 31,
+        'sel-line-start': 815,
+        'selection_end': 815,
+        'selection_start': 815},
+                       loc('examples/pygamewrapper/bounce_ball_with_paddle.py'): {''\
+        'attrib-starts': [],
+        'first-line': 87,
+        'folded-linenos': [],
+        'sel-line': 225,
+        'sel-line-start': 7151,
+        'selection_end': 7151,
+        'selection_start': 7151},
+                       loc('examples/pygamewrapper/draw_module_example.py'): {''\
+        'attrib-starts': [],
+        'first-line': 0,
+        'folded-linenos': [],
+        'sel-line': 26,
+        'sel-line-start': 589,
+        'selection_end': 594,
+        'selection_start': 594},
                        loc('pygame2/sdl/render.py'): {'attrib-starts': [],
         'first-line': 459,
         'folded-linenos': [],
         'sel-line': 7,
         'sel-line-start': 118,
         'selection_end': 153,
-        'selection_start': 139}}
+        'selection_start': 139},
+                       loc('file:c:/Python33/Lib/site-packages/pygame2/sdl/render.py'): {''\
+        'attrib-starts': [('render_copy',
+                           680)],
+        'first-line': 671,
+        'folded-linenos': [],
+        'sel-line': 693,
+        'sel-line-start': 26529,
+        'selection_end': 26529,
+        'selection_start': 26529},
+                       loc('file:c:/Python33/Lib/site-packages/pygamewrapper/image/__init__.py'): {''\
+        'attrib-starts': [],
+        'first-line': 0,
+        'folded-linenos': [],
+        'sel-line': 1,
+        'sel-line-start': 20,
+        'selection_end': 41,
+        'selection_start': 27}}
 proj.build-cmd = {loc('../WebServer/CMSC150BookHTML/python_examples/bitmapped_graphics.py'): (''\
         'project',
         None),
                   loc('examples/pygamewrapper/draw_module_example.py'): ('pr'\
         'oject',
         None),
+                  loc('examples/pygamewrapper/sprite_collect_blocks.py'): (''\
+        'project',
+        None),
                   loc('pygame2/sdl/surface.py'): ('project',
         None),
                   loc('pygamewrapper/__init__.py'): ('project',
                  loc('examples/pygamewrapper/draw_module_example.py'): ('pro'\
         'ject',
         ['']),
+                 loc('examples/pygamewrapper/sprite_collect_blocks.py'): ('p'\
+        'roject',
+        ['']),
                  loc('pygame2/sdl/surface.py'): ('project',
         ['']),
                  loc('pygamewrapper/__init__.py'): ('project',

File pygamewrapper/display/__init__.py

 import pygame2.sdl
 import pygame2.sdl.video
 import pygame2.sdl.render
+import pygamewrapper
 
 current_window = None
 
 		dest_rect.y=location[1]
 		dest_rect.w=image.width
 		dest_rect.h=image.height
+		if image.texture == None:
+			image.texture = pygame2.sdl.render.create_texture_from_surface(pygamewrapper.display.current_window.renderer,image.surface)
+			
 		pygame2.sdl.render.render_copy(current_window.renderer,image.texture, None, dest_rect)
 		
 		

File pygamewrapper/sprite/__init__.py

 ## specialized cases.
 
 import pygamewrapper as pygame
-from pygamewrapper import Rect
-from pygamewrapper.time import get_ticks
+from pygame import Rect
+from pygame.time import get_ticks
 from operator import truth
 
 # Python 3 does not have the callable function, but an equivalent can be made