~rick-rickspencer3/bucket-brigade/first

« back to all changes in this revision

Viewing changes to bin/bucket_brigade

  • Committer: Rick Spencer
  • Date: 2010-11-05 00:13:07 UTC
  • Revision ID: rick.spencer@canonical.com-20101105001307-ewjgq3hu5jben8ih
made bouncing work to the right level and such

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
play_area = bucket_brigade.bucket_brigadeconfig.play_area
83
83
bg_rect = pygame.Rect(play_area["left"] - 20, play_area["top"],
84
84
                          play_area["right"] - play_area["left"] + 20,
85
 
                          (play_area["bottom"] - play_area["top"]) + 20)
 
85
                          (play_area["bottom"] - play_area["top"]) + 12)
86
86
 
87
87
screen.blit(background, (0,0))
88
88
pygame.display.update()
200
200
    #this occurs if he is exploding
201
201
    #otherwise, if he collides with enemies, explode them both
202
202
    if g.alive:
203
 
        g_rect = pygame.Rect(g.rect.left, g.rect.top + 30,
 
203
        g_rect = pygame.Rect(g.rect.left, g.rect.top + 25,
204
204
                             g.rect.width, 10)
205
205
        g.rect = g_rect
206
206
        for e in enemies: