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

Added black border around game window

parent 542a4e99
No related branches found
No related tags found
1 merge request!35Resolve "Drawing order of counters and things on top"
Pipeline #44950 passed
...@@ -366,6 +366,19 @@ class PyGameGUI: ...@@ -366,6 +366,19 @@ class PyGameGUI:
screen_margin=self.screen_margin, screen_margin=self.screen_margin,
config=self.visualization_config, config=self.visualization_config,
) )
border = self.visualization_config["GameWindow"]["black_border_size"]
pygame.draw.rect(
self.main_window,
colors["black"],
pygame.Rect(
self.screen_margin - border,
self.screen_margin - border,
self.game_width + 2 * border,
self.game_height + 2 * border,
),
width=self.visualization_config["GameWindow"]["black_border_size"],
)
self.update_score_label(state) self.update_score_label(state)
def set_window_size(self): def set_window_size(self):
......
...@@ -12,6 +12,7 @@ GameWindow: ...@@ -12,6 +12,7 @@ GameWindow:
order_bar_height: 100 order_bar_height: 100
order_size: 50 order_size: 50
black_border_size: 1
background_color: lemonchiffon1 background_color: lemonchiffon1
Kitchen: Kitchen:
......
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