refactored assets structure and added agent1violation.png
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
BIN
environments/factory/assets/agents/agent1violation.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
@ -28,7 +28,7 @@ class Renderer:
|
|||||||
self.screen_size = (grid_h*cell_size, grid_w*cell_size)
|
self.screen_size = (grid_h*cell_size, grid_w*cell_size)
|
||||||
self.screen = pygame.display.set_mode(self.screen_size)
|
self.screen = pygame.display.set_mode(self.screen_size)
|
||||||
self.clock = pygame.time.Clock()
|
self.clock = pygame.time.Clock()
|
||||||
assets = list((Path(__file__).parent / 'assets').glob('*.png'))
|
assets = list((Path(__file__).parent / 'assets').rglob('*.png'))
|
||||||
self.assets = {path.stem: self.load_asset(str(path), 0.97) for path in assets}
|
self.assets = {path.stem: self.load_asset(str(path), 0.97) for path in assets}
|
||||||
self.fill_bg()
|
self.fill_bg()
|
||||||
|
|
||||||
|