|
@@ -106,7 +106,7 @@ class Scene:
|
|
|
|
|
|
|
|
# Set x in range to prevent the scene from being outside the window.
|
|
# Set x in range to prevent the scene from being outside the window.
|
|
|
# The minus sign is essential to correctly position the scene.
|
|
# The minus sign is essential to correctly position the scene.
|
|
|
- if x < settings.WINDOW_WIDTH // 2:
|
|
|
|
|
|
|
+ if x <= settings.WINDOW_WIDTH // 2:
|
|
|
self.rect.x = 0
|
|
self.rect.x = 0
|
|
|
elif (
|
|
elif (
|
|
|
settings.WINDOW_WIDTH // 2
|
|
settings.WINDOW_WIDTH // 2
|