Fix: Dont reference screen when rendering screenles
This commit is contained in:
		
							parent
							
								
									3311d1501b
								
							
						
					
					
						commit
						82a43b85d0
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user