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

Method __init__

PongPong_Game/pong/ball.py:9–12  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

7
8class BallObject(pyglet.shapes.Circle):
9 def __init__(self, *args, **kwargs):
10 super(BallObject, self).__init__(*args, **kwargs)
11 self.color = (255, 180, 0)
12 self.velocity_x, self.velocity_y = 0.0, 0.0
13
14 def update(self, win_size: Tuple, border: Tuple, other_object, dt) -> None:
15 speed = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected