From 94e2175859bd88b9f4196024275bd5345473d829 Mon Sep 17 00:00:00 2001 From: s463041 Date: Wed, 8 May 2024 20:21:17 +0200 Subject: [PATCH] Revert "added more costly squares" This reverts commit 1358ec3f7591c735f4ca4cf6e59ac0df5d04a8ee. --- .idea/Automatyczny_kelner.iml | 10 - .../inspectionProfiles/profiles_settings.xml | 6 - .idea/misc.xml | 4 - .idea/vcs.xml | 6 - .idea/workspace.xml | 239 ------------------ main.py | 17 +- 6 files changed, 1 insertion(+), 281 deletions(-) delete mode 100644 .idea/Automatyczny_kelner.iml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml 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