Update enemy.py

main
Marija Boiko 2024-01-29 08:45:55 +00:00
parent 0981268dc7
commit d58a0ea845
1 changed files with 28 additions and 27 deletions

View File

@ -5,7 +5,8 @@ class Gun(pygame.sprite.Sprite):
def __init__(self, screen): def __init__(self, screen):
super(Gun, self).__init__() super(Gun, self).__init__()
self.screen= screen self.screen= screen
self.image=pygame.image.load("image/flower.png") self.image=pygame.image.load("sakura.png")
self.rect=self.image.get_rect() self.rect=self.image.get_rect()
self.screen_rect=screen.get_rect() self.screen_rect=screen.get_rect()
self.rect.centerx=self.screen_rect.centerx self.rect.centerx=self.screen_rect.centerx