Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # clear_this_frame is a list of rectangles which have been drawn over
- # static_blits is a dict where keys are strings (for another purpose), value is a
- # (surface,rect) tuple. I want to redraw each surface in the area that each i in clear_this_frame
- # has overlapped with them.
- for i in clear_this_frame:
- b = background.subsurface(i)
- screen.blit(b, i)
- for surface,position in static_blits.itervalues():
- if position.colliderect(i):
- screen.blit(surface, position.clip(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement