(self, path, x_pos, y_pos)
| 5 | |
| 6 | class Block(pygame.sprite.Sprite): |
| 7 | def __init__(self, path, x_pos, y_pos): |
| 8 | super().__init__() |
| 9 | self.image = pygame.image.load(path) |
| 10 | self.rect = self.image.get_rect(center=(x_pos, y_pos)) |
| 11 | |
| 12 | |
| 13 | class Player(Block): |