updated bug when resetting player image. It sent you to origin and you lost instantly
This commit is contained in:
parent
b30a7c4ff0
commit
e7687ded09
1 changed files with 3 additions and 1 deletions
|
@ -37,5 +37,7 @@ class Shooter(pygame.sprite.Sprite):
|
|||
self.set_position(x,y)
|
||||
|
||||
def reset_image(self):
|
||||
x,y = self.rect.x, self.rect.y
|
||||
self.image = pygame.transform.scale(self.texture.get_texture("PLAYER"), (self.width, self.height))
|
||||
self.rect = self.image.get_rect()
|
||||
self.set_position(x,y)
|
Reference in a new issue