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

Method __init__

projects/PONG/main.py:169–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167
168class Cursor(pygame.sprite.Sprite):
169 def __init__(self) -> None:
170 super().__init__()
171 self.cursor_image = pygame.image.load("assets/cursor.png")
172 self.cursor = pygame.transform.scale(self.cursor_image, (27, 27))
173 self.cursor_rect = self.cursor.get_rect()
174
175 def update(self):
176 self.cursor_rect.topleft = pygame.mouse.get_pos()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected