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

Removed comments, made pot more visible

parent 3c44bc25
No related branches found
No related tags found
1 merge request!10Resolve "Pot and stove and cooking tomato soup"
Pipeline #41680 passed
......@@ -223,20 +223,6 @@ class Stove(Counter):
occupied_by = Pot()
super().__init__(pos, occupied_by)
# def drop_off(self, item) -> Item | None:
# if isinstance(item, (Pot, Pan)):
# self.occupied_by = item
# else:
# self.occupied_by.combine(item)
# return None
#
# def can_drop_off(self, item) -> bool:
# if isinstance(item, (Pot, Pan)):
# return not self.occupied_by
# if self.occupied_by:
# return self.occupied_by.can_combine(item)
# return False
def progress(self):
"""Called by environment step function for time progression"""
if (
......
......@@ -38,9 +38,7 @@ BACKGROUND_LINES_COLOR = (200, 200, 200)
KNIFE_COLOR = (120, 120, 120)
PLATE_RETURN_COLOR = (170, 170, 240)
BOARD_COLOR = (239, 193, 151)
POT_COLOR = (180, 180, 180)
# STOVE_COLOR = (60, 60, 60)
# STOVE_HEATING_PLATE_COLOR = (252, 123, 73)
POT_COLOR = (130, 130, 130)
USE_COOK_SPRITE = True
......@@ -231,6 +229,7 @@ class PyGameGUI:
if isinstance(item, Pot):
pot_size = 15
pygame.draw.circle(self.screen, GREY, pos, pot_size)
pygame.draw.circle(self.screen, POT_COLOR, pos, pot_size, width=2)
if item.content:
self.draw_item(pos, item.content)
if isinstance(item, Soup):
......
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