diff --git a/.idea/Automatyczny_kelner.iml b/.idea/Automatyczny_kelner.iml deleted file mode 100644 index aad402c..0000000 --- a/.idea/Automatyczny_kelner.iml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index dc9ea49..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 2347389..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - - - - - - - - - - - - - - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "WebServerToolWindowFactoryState": "false", - "last_opened_file_path": "/home/students/s463041/semestr4/Automatyczny_kelner", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "settings.editor.selected.configurable": "PyConsoleConfigurable.Python Console", - "vue.rearranger.settings.migration": "true" - } -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1712172970366 - - - - - - - - - \ No newline at end of file diff --git a/main.py b/main.py index cffb9dc..b1103a0 100644 --- a/main.py +++ b/main.py @@ -193,27 +193,12 @@ def kuchnia(x, y): def menu(x, y): screen.blit(menuImg, (x * blockSize, y * blockSize)) -kosztNormalnejPlytki = 1 -kosztDrozszejPlytki = 5 - -def kosztownaPlytka(x, y): - if x > 60*4 and x < 60*7 and y < 60*9: - return True - if x > 60*12 and x < 60*16 and y > 60*5: - return True - if x > 60*20 and y < 60*9 and y > 60*3: - return True - return False - def wypiszOkno(): screen.fill((0, 0, 0)) for x in range(0, width, blockSize): for y in range(0, height, blockSize): rect = pygame.Rect(x, y, blockSize, blockSize) - if kosztownaPlytka(x, y): - pygame.draw.rect(screen, (200, 0, 0), rect, 1) - else: - pygame.draw.rect(screen, (200, 200, 200), rect, 1) #-------------Wypisz kratÄ™ -TA + pygame.draw.rect(screen, (200, 200, 200), rect, 1) #-------------Wypisz kratÄ™ -TA run = True