about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-08-05 14:38:33 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-08-05 14:38:33 +0700
commit91e5d148da7e6ef4488c08c284ef4b770352d413 (patch)
treed11f263a20cd1edb716a4faef1c930a35b7bd92b
parentc8ec577a9c2075099617028e9e90972117337ead (diff)
downloadbrutalmaze-91e5d148da7e6ef4488c08c284ef4b770352d413.tar.gz
Fix resizing issue
-rw-r--r--brutalmaze/characters.py2
-rw-r--r--brutalmaze/maze.py1
-rw-r--r--pyproject.toml4
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',