MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / reset

Method reset

Lazy_Pong/pong.py:143–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 (self.center_x, self.center_y), self.radius)
142
143 def reset(self) -> None:
144 self.speed_x = 0
145 self.speed_y = 0
146 self.center_x = self.display_width / 2
147 self.center_y = self.display_high / 2
148 self.draw(self.surface)
149
150 def get_borders(self) -> dict:
151 return {

Callers 1

_reset_gameMethod · 0.45

Calls 1

drawMethod · 0.95

Tested by

no test coverage detected