5 from .loader import loader
8 class Cursor(pygame.sprite.Sprite):
11 super(Cursor, self).__init__()
14 def activate(self, name, group, transform=None):
16 self.image = loader.load_image('cursors', name + '.png',
19 self.image = loader.load_image('cursors', name + '.png')
20 self.rect = self.image.get_rect()
24 pygame.mouse.set_visible(0)
26 def deactivate(self, group):
28 pygame.mouse.set_visible(1)
33 self.rect.center = pygame.mouse.get_pos()