MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / __init__

Method __init__

projects/PONG/main.py:32–35  ·  view source on GitHub ↗
(self, path, x_pos, y_pos, speed)

Source from the content-addressed store, hash-verified

30
31class Opponent(Block):
32 def __init__(self, path, x_pos, y_pos, speed):
33 super().__init__(path, x_pos, y_pos)
34 self.speed = speed
35 self.x = x_pos
36
37 def update(self, ball_group):
38 if game_state.state == "hard_game" or game_state.state == "med_game":

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected