~rick-rickspencer3/pygame-template/trunk

« back to all changes in this revision

Viewing changes to bin/crashteroids

  • Committer: Rick Spencer
  • Date: 2010-03-07 00:17:48 UTC
  • Revision ID: rick.spencer@canonical.com-20100307001748-dh8grxsuakbu4cu1
lots of renaming of camelCase names, and indented and documented baseSprite.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
            #control the guy
129
129
            if not game.paused: 
130
130
                if event.key == pygame.K_f:
131
 
                    g.startRotationRight()
 
131
                    g.start_rotation_right()
132
132
                if event.key == pygame.K_s:
133
 
                    g.startRotationLeft()
 
133
                    g.start_rotation_left()
134
134
                if event.key == pygame.K_l:
135
135
                    g.accelerate()
136
136
                if event.key == pygame.K_j:
143
143
            if event.key == pygame.K_F11:
144
144
                pygame.display.toggle_fullscreen() 
145
145
            if event.key == pygame.K_f:
146
 
                g.stopRotationRight()
 
146
                g.stop_rotating_right()
147
147
            if event.key == pygame.K_s:
148
 
                g.stopRotationLeft()
 
148
                g.stop_rotating_left()
149
149
            if event.key == pygame.K_l:
150
 
                g.stopAcceleration()    
 
150
                g.stop_acceleration()    
151
151
 
152
152
def update_sprites():
153
153
    """update_sprites - call update() for all sprites"""