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

Method mask

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

Source from the content-addressed store, hash-verified

57
58 @property
59 def mask(self):
60 # collision detection
61 if pygame.time.get_ticks() % 500 >= 250:
62 return self._mask_wingup
63 else:
64 return self._mask_wingdown
65
66 @property
67 def rect(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected