소스 검색

boundary conditions changed to set_position()

Zero! Studio 1 년 전
부모
커밋
b6a1487f72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jogai/scene.py

+ 1 - 1
jogai/scene.py

@@ -106,7 +106,7 @@ class Scene:
 
         # Set x in range to prevent the scene from being outside the window.
         # 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
         elif (
             settings.WINDOW_WIDTH // 2