MCPcopy Create free account
hub / github.com/geekcomputers/Python / rect

Method rect

flappyBird_pygame/flappy_bird.py:131–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129
130 @property
131 def rect(self):
132 # Get the Rect which contains this Pipe.
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected