Skip to content
Snippets Groups Projects
  • Florian Schröder's avatar
    af78587a
    Update pygame visualization settings · af78587a
    Florian Schröder authored
    The visualization settings for the pygame 2d visualization such as 'use_player_cook_sprites', 'show_interaction_range', and 'show_counter_centers' are now part of the configuration in 'visualization.yaml'. If these settings are not defined in the configuration, the program will use default values. This change allows for easier modification of the visualization aspects without directly changing the code each time.
    af78587a
    History
    Update pygame visualization settings
    Florian Schröder authored
    The visualization settings for the pygame 2d visualization such as 'use_player_cook_sprites', 'show_interaction_range', and 'show_counter_centers' are now part of the configuration in 'visualization.yaml'. If these settings are not defined in the configuration, the program will use default values. This change allows for easier modification of the visualization aspects without directly changing the code each time.
visualization.yaml 6.39 KiB
# colors: https://www.webucator.com/article/python-color-constants-module/

Gui:
  use_player_cook_sprites: True
  show_interaction_range: False
  show_counter_centers: False


GameWindow:
  screen_margin: 100
  min_width: 900
  min_height: 600
  buttons_width: 180
  buttons_height: 60
  FPS: 60

  order_bar_height: 100
  order_size: 50

  game_border_size: 1
  game_border_color: black
  background_color: lemonchiffon1

Kitchen:
  ground_tiles_color: sgigray76
  background_lines: gray79

Counter:
  parts:
    #    - type: rect
    #      height: 1
    #      width: 1
    #      color: whitesmoke
    - type: image
      path: images/counter5.png
      size: 1

CuttingBoard:
  parts:
    - type: image
      path: images/cutting_board_large.png
      size: 0.75
      center_offset: [ 0, -0.05 ]


PlateDispenser:
  parts: [ ]
#    - type: rect
#      height: 0.95
#      width: 0.95
#      color: cadetblue1

Trashcan:
  parts:
    - type: image
      path: images/trash6.png
      size: 0.88

#TomatoDispenser:
#  parts:
#    - color: orangered1
#      type: rect
#      height: 0.8
#      width: 0.8
#
#LettuceDispenser:
#  parts:
#    - color: palegreen3
#      type: rect
#      height: 0.8