def __init__(self, pos, color, flipped): super().__init__(public.all_sprites, public.blocks) self.image = functions.image_return(color, 'Exit') self.rect = self.image[0].get_rect(topleft=pos) self.transparent = pygame.Surface(self.image[0].get_size()) self.type = 'Exit' self.color = color self.layer = 3 self.anim_index = 0 self.anim_ticks = 0 self.transparent.set_alpha(0)
def __init__(self, pos, color, direction): super().__init__(public.all_sprites, public.blocks) self.image = functions.image_return(color, 'Flipad') self.transparent = pygame.Surface((20, 10)) self.rect = self.image[0].get_rect(topleft=pos) self.direction = direction self.type = 'Flipad' self.color = color self.layer = 3 self.anim_index = 0 self.anim_ticks = 0 self.transparent.set_alpha(0) functions.flip_check(self)