(self, x, y, ms_to_up, images)
| 28 | UP_DURATION = 150 # time for which bird go up |
| 29 | |
| 30 | def __init__(self, x, y, ms_to_up, images): |
| 31 | super(Bird, self).__init__() |
| 32 | self.x, self.y = x, y |
| 33 | self.ms_to_up = ms_to_up |
| 34 | self._img_wingup, self._img_wingdown = images |
| 35 | self._mask_wingup = pygame.mask.from_surface(self._img_wingup) |
| 36 | self._mask_wingdown = pygame.mask.from_surface(self._img_wingdown) |
| 37 | |
| 38 | def update(self, delta_frames=1): |
| 39 | if self.ms_to_up > 0: |
nothing calls this directly
no outgoing calls
no test coverage detected