Skip to content

Commit

Permalink
added max monitor resolution to settings_screen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rutra8002 committed Jul 19, 2024
1 parent c752b8d commit 739bbb2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions screens/settings_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ def __init__(self, game):

self.dimentions = [{'WIDTH': 2560, 'HEIGHT': 1440}, {'WIDTH': 1920, 'HEIGHT': 1080},
{'WIDTH': 1280, 'HEIGHT': 720}, {'WIDTH': 1000, 'HEIGHT': 700}]

# Get maximum monitor width and height
display_info = pygame.display.Info()
max_width = display_info.current_w
max_height = display_info.current_h

# Append maximum monitor width and height to dimensions
self.dimentions.append({'WIDTH': max_width, 'HEIGHT': max_height})

self.HotbarPositions = ['Bottom', 'Top', 'Left', 'Right']

self.Fullscreen = [{'FULLSCREEN': 'ON'}, {'FULLSCREEN': 'OFF'}]
Expand Down

0 comments on commit 739bbb2

Please sign in to comment.