mirror of
				https://github.com/illiumst/marl-factory-grid.git
				synced 2025-11-01 21:17:26 +01:00 
			
		
		
		
	switched to opacity in simple_factory_getting_dirty.py
This commit is contained in:
		| @@ -39,7 +39,7 @@ class GettingDirty(BaseFactory): | ||||
|             height, width = self.state.shape[1:] | ||||
|             self.renderer = Renderer(width, height, view_radius=2) | ||||
|  | ||||
|         dirt   = [Entity('dirt', [x, y], min(self.state[DIRT_INDEX, x, y], 1), 'scale') | ||||
|         dirt   = [Entity('dirt', [x, y], min(1.1*self.state[DIRT_INDEX, x, y], 1), 'opacity') | ||||
|                   for x, y in np.argwhere(self.state[DIRT_INDEX] > h.IS_FREE_CELL)] | ||||
|         walls  = [Entity('dirt', pos) for pos in np.argwhere(self.state[h.LEVEL_IDX] > h.IS_FREE_CELL)] | ||||
|         agents = [Entity('agent1', pos) for pos in np.argwhere(self.state[h.AGENT_START_IDX] > h.IS_FREE_CELL)] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user