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

Method update

brickout-game/brickout-game.py:129–135  ·  view source on GitHub ↗

moves the paddle at the screen via mouse

(self)

Source from the content-addressed store, hash-verified

127 )
128
129 def update(self):
130 """
131 moves the paddle at the screen via mouse
132 """
133 x, y = pygame.mouse.get_pos()
134 if x >= 0 and x <= (self.__W - self._width):
135 self._xLoc = x
136
137
138"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected