Compare commits
	
		
			2 Commits
		
	
	
		
			22406420c2
			...
			bce07db40e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bce07db40e | |||
| 0d95e85d83 | 
| @ -315,10 +315,10 @@ class DefaultCell(BaseEntity): | |||||||
|             duplicate_y_2 += random.randint(-self.max_visual_width, self.max_visual_width) |             duplicate_y_2 += random.randint(-self.max_visual_width, self.max_visual_width) | ||||||
| 
 | 
 | ||||||
|             new_cell = DefaultCell(Position(x=int(duplicate_x), y=int(duplicate_y)), Rotation(angle=random.randint(0, 359))) |             new_cell = DefaultCell(Position(x=int(duplicate_x), y=int(duplicate_y)), Rotation(angle=random.randint(0, 359))) | ||||||
|             new_cell.set_brain(self.behavioral_model.mutate(0.025)) |             new_cell.set_brain(self.behavioral_model.mutate(0.05)) | ||||||
| 
 | 
 | ||||||
|             new_cell_2 = DefaultCell(Position(x=int(duplicate_x_2), y=int(duplicate_y_2)), Rotation(angle=random.randint(0, 359))) |             new_cell_2 = DefaultCell(Position(x=int(duplicate_x_2), y=int(duplicate_y_2)), Rotation(angle=random.randint(0, 359))) | ||||||
|             new_cell_2.set_brain(self.behavioral_model.mutate(0.025)) |             new_cell_2.set_brain(self.behavioral_model.mutate(0.05)) | ||||||
| 
 | 
 | ||||||
|             return [new_cell, new_cell_2] |             return [new_cell, new_cell_2] | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -162,8 +162,6 @@ class World: | |||||||
|         """ |         """ | ||||||
|         Advances all objects in the world by one tick, updating their state and handling interactions. |         Advances all objects in the world by one tick, updating their state and handling interactions. | ||||||
|         """ |         """ | ||||||
|         print("Ticking all objects in the world") |  | ||||||
| 
 |  | ||||||
|         next_buffer: int = 1 - self.current_buffer |         next_buffer: int = 1 - self.current_buffer | ||||||
|         self.buffers[next_buffer].clear() |         self.buffers[next_buffer].clear() | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user