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

Method get_speed

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

Source from the content-addressed store, hash-verified

133 self.speed_y *= -1
134
135 def get_speed(self) -> tuple:
136 return (self.speed_x, self.speed_y)
137
138 def draw(self, display: pygame.Surface) -> None:
139 self.surface = display

Callers 2

_update_game_speedMethod · 0.45
_update_eventsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected