def __init__(self):
     # Setup the player properties using the EntityFactory
     self.properties = EntityFactory.createPlayerProperties()
     self.sprites = self.properties["sprites"]
     self.conductor = pyganim.PygConductor(self.sprites)
     # Pixels to move per second for this player
     self.pps = self.properties["pps"]
     # Speedlock equals 1 if it is disabled, and 0.5 if it's on
     self.speedlock = 1
     self.inventory = self.properties["inventory"]
     self.position = (300, 300)
     self.coll_rect = pygame.Rect((0,0), (25, 10))
     # Setup initial direction
     self.moving = False
     self.facing = None
     self.direction = None
     self.animation = None
     self.setFacing([0,1])
     self.setDirection([0,1])
     # Setup initial sprite
     self.setAnimation("walk")
     self.currentsprite = None
     self.updateSprite()
     self.visible = True
     self.walk_starttime = 0
     self.walk_curtime = 0
 def __init__(self):
     # Setup the shadow's properties using the EntityFactory
     self.properties = EntityFactory.createShadowProperties()
     self.sprites = self.properties["sprites"]
     self.conductor = pyganim.PygConductor(self.sprites)
     self.position = (300, 300)
     self.coll_rect = pygame.Rect((0,0), (25, 10))
     # Setup initial direction
     self.moving = False
     self.direction = None
     self.position = (300, 300)
     self.setDirection([0,1])
     self.resetMovementVars()
     # Setup initial sprite
     self.currentsprite = None
     self.updateSprite()
     self.walk_starttime = 0
     self.walk_curtime = 0
     # Visibility
     self.visible = False