From a264ac7cb19edfeda4b57a98e603ed0a484706be Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 14:52:30 +0200 Subject: [PATCH] Refactor to fixed Entity class --- src/entities/Player.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/entities/Player.py b/src/entities/Player.py index 6fda5bf..ed6f38a 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -7,10 +7,7 @@ import pygame class Player(Entity): def __init__(self, spawnpoint, size): - self.statistics = Statistics(100, 0, 0, 100) - - self.image, self.rect = Entity.getTexture("player.jpg", size) - super().__init__(self.image, spawnpoint) + super().__init__("player.jpg", size, spawnpoint) # Where the player is facing, 0 - north, 1 self.rotation = Rotations.NORTH