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

Method updatePos

PingPong/Ball.py:32–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.doVerticalFlip()
31
32 def updatePos(self):
33 self.pos = [self.pos[0] + self.vel[0], self.pos[1] + self.vel[1]]
34
35 def checkSlabCollision(self, slabPos): # slab pos = [xmin, ymin, xmax, ymax]
36 if (

Callers 1

main.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected