소스 검색

Fix box rendering

Maxime Chevalier-Boisvert 5 년 전
부모
커밋
be6219cbfa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      gym_minigrid/minigrid.py

+ 2 - 2
gym_minigrid/minigrid.py

@@ -346,8 +346,8 @@ class Box(WorldObj):
         fill_coords(img, point_in_rect(0.12, 0.88, 0.12, 0.88), c)
         fill_coords(img, point_in_rect(0.18, 0.82, 0.18, 0.82), (0,0,0))
 
-        # Vertical slit
-        fill_coords(img, point_in_rect(0.48, 0.52, 0.16, 0.84), c)
+        # Horizontal slit
+        fill_coords(img, point_in_rect(0.16, 0.84, 0.47, 0.53), c)
 
     def toggle(self, env, pos):
         # Replace the box by its contents