Finales Produk

This commit is contained in:
moritz 2024-07-11 11:13:32 +02:00
parent 1493ba9471
commit ef1eda95e5
4 changed files with 2 additions and 1 deletions

View file

@ -61,6 +61,7 @@ class Player(pygame.sprite.Sprite):
return "scene_4" return "scene_4"
if current_scene == "scene_2" and self.rect.x >= 1880: if current_scene == "scene_2" and self.rect.x >= 1880:
self.rect.x = -80 self.rect.x = -80
self.rect.y = 830
return "scene_9" return "scene_9"
if current_scene == "scene_3" and self.rect.x >= 1880: if current_scene == "scene_3" and self.rect.x >= 1880:
self.rect.x = -80 self.rect.x = -80
@ -109,7 +110,7 @@ class Player(pygame.sprite.Sprite):
return "scene_9" return "scene_9"
if current_scene == "scene_9" and self.rect.x <= -80: if current_scene == "scene_9" and self.rect.x <= -80:
self.rect.x = 1880 self.rect.x = 1880
self.rect.y = 795 self.rect.y = 780
return "scene_2" return "scene_2"
if current_scene == "scene_9" and self.rect.y <= -80: if current_scene == "scene_9" and self.rect.y <= -80:
self.rect.y = 1080 self.rect.y = 1080