Skip to content
Snippets Groups Projects
Commit 6d057372 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Readded colors for chefs

parent cb33eae7
No related branches found
No related tags found
1 merge request!35Resolve "Drawing order of counters and things on top"
Pipeline #44914 passed
......@@ -144,6 +144,13 @@ class Visualizer:
facing = np.array(player_dict["facing_direction"])
if USE_PLAYER_COOK_SPRITES:
pygame.draw.circle(
screen,
self.player_colors[p_idx],
pos - facing * grid_size * 0.25,
grid_size * 0.2,
)
img_path = self.config["Cook"]["parts"][0]["path"]
rel_x, rel_y = facing
angle = -np.rad2deg(math.atan2(rel_y, rel_x)) + 90
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment