MCPcopy Index your code
hub / github.com/geekcomputers/Python / update

Method update

flappyBird_pygame/flappy_bird.py:135–136  ·  view source on GitHub ↗
(self, delta_frames=1)

Source from the content-addressed store, hash-verified

133 return Rect(self.x, 0, PipePair.WIDTH, PipePair.PIECE_HEIGHT)
134
135 def update(self, delta_frames=1):
136 self.x -= ANI_SPEED * frames_to_msec(delta_frames)
137
138 def collides_with(self, bird):
139 return pygame.sprite.collide_mask(self, bird)

Callers

nothing calls this directly

Calls 1

frames_to_msecFunction · 0.85

Tested by

no test coverage detected