import pygame

class ShadowSprite(pygame.sprite.Sprite):
    SPRITES_PATH = "assets/img/"
    
    def __init__(self, player,  pos = (0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + "ombre.png")
        
    def update(self, scene, screen):
        spos = self._player.position()
        spos[2] = 0
        position = screen.calcPos(spos)
        #Position update
        self.rect = self.image.get_rect()
        self.rect.x = position[0]- 75
        self.rect.y = position[1]- 80

51ae07b0ec0a713bcdb4fda7beb0043b7cc2a57c
<mask token>


class ShadowSprite(pygame.sprite.Sprite):
    <mask token>

    def __init__(self, player, pos=(0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + 'ombre.png')
    <mask token>

<mask token>


class ShadowSprite(pygame.sprite.Sprite):
    <mask token>

    def __init__(self, player, pos=(0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + 'ombre.png')

    def update(self, scene, screen):
        spos = self._player.position()
        spos[2] = 0
        position = screen.calcPos(spos)
        self.rect = self.image.get_rect()
        self.rect.x = position[0] - 75
        self.rect.y = position[1] - 80

<mask token>


class ShadowSprite(pygame.sprite.Sprite):
    SPRITES_PATH = 'assets/img/'

    def __init__(self, player, pos=(0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + 'ombre.png')

    def update(self, scene, screen):
        spos = self._player.position()
        spos[2] = 0
        position = screen.calcPos(spos)
        self.rect = self.image.get_rect()
        self.rect.x = position[0] - 75
        self.rect.y = position[1] - 80

import pygame


class ShadowSprite(pygame.sprite.Sprite):
    SPRITES_PATH = 'assets/img/'

    def __init__(self, player, pos=(0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + 'ombre.png')

    def update(self, scene, screen):
        spos = self._player.position()
        spos[2] = 0
        position = screen.calcPos(spos)
        self.rect = self.image.get_rect()
        self.rect.x = position[0] - 75
        self.rect.y = position[1] - 80

import pygame

class ShadowSprite(pygame.sprite.Sprite):
    SPRITES_PATH = "assets/img/"
    
    def __init__(self, player,  pos = (0, 0)):
        pygame.sprite.Sprite.__init__(self)
        self._player = player
        self.image = pygame.image.load(self.SPRITES_PATH + "ombre.png")
        
    def update(self, scene, screen):
        spos = self._player.position()
        spos[2] = 0
        position = screen.calcPos(spos)
        #Position update
        self.rect = self.image.get_rect()
        self.rect.x = position[0]- 75
        self.rect.y = position[1]- 80
