Refactor to fixed Entity class
This commit is contained in:
parent
d88670f456
commit
a264ac7cb1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user