Fix: Dont reference screen when rendering screenles

This commit is contained in:
2022-08-14 16:50:21 +02:00
parent 3311d1501b
commit 82a43b85d0
+1 -1
View File
@@ -71,9 +71,9 @@ class ColumbusEnv(gym.Env):
if self.visible:
self.screen = pygame.display.set_mode(
(self.width, self.height))
pygame.display.set_caption(self.title)
else:
self.screen = pygame.Surface((self.width, self.height))
pygame.display.set_caption(self.title)
def _limit_to_unit_circle(self, coords):
l_sq = coords[0]**2 + coords[1]**2