From 91e5d148da7e6ef4488c08c284ef4b770352d413 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 5 Aug 2021 14:38:33 +0700 Subject: Fix resizing issue --- brutalmaze/characters.py | 2 +- brutalmaze/maze.py | 1 - pyproject.toml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/brutalmaze/characters.py b/brutalmaze/characters.py index 7fa8c93..1c37be9 100644 --- a/brutalmaze/characters.py +++ b/brutalmaze/characters.py @@ -403,7 +403,7 @@ class ScarletRed(Enemy): return False def move(self): - return super().move(self, ENEMY_SPEED * SQRT2) + return super().move(ENEMY_SPEED * SQRT2) def slash(self): """Handle the Scarlet Red's close-range attack.""" diff --git a/brutalmaze/maze.py b/brutalmaze/maze.py index 73bccf5..d64e77f 100644 --- a/brutalmaze/maze.py +++ b/brutalmaze/maze.py @@ -433,7 +433,6 @@ class Maze: def resize(self, size): """Resize the maze.""" self.w, self.h = size - self.surface = pygame.display.set_mode(size, pygame.RESIZABLE) self.hero.resize(size) offsetx = (self.centerx-self.x) / self.distance diff --git a/pyproject.toml b/pyproject.toml index 38f30d2..7f80517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,10 +7,10 @@ module = 'brutalmaze' author = 'Nguyễn Gia Phong' author-email = 'mcsinyx@disroot.org' home-page = 'https://sr.ht/~cnx/brutalmaze' -requires = ['appdirs', 'palace', 'pygame>=1.9', 'setuptools'] +requires = ['appdirs', 'palace', 'pygame>=2', 'setuptools'] description-file = 'README.rst' classifiers = [ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Environment :: MacOS X', 'Environment :: Win32 (MS Windows)', 'Environment :: X11 Applications', -- cgit 1.4.1