diff --git a/__pycache__/crash.cpython-38.pyc b/__pycache__/crash.cpython-38.pyc index 793fcde..9fb3d8e 100644 Binary files a/__pycache__/crash.cpython-38.pyc and b/__pycache__/crash.cpython-38.pyc differ diff --git a/__pycache__/launcher.cpython-38.pyc b/__pycache__/launcher.cpython-38.pyc index ea59e87..119a9c4 100644 Binary files a/__pycache__/launcher.cpython-38.pyc and b/__pycache__/launcher.cpython-38.pyc differ diff --git a/__pycache__/scene.cpython-38.pyc b/__pycache__/scene.cpython-38.pyc new file mode 100644 index 0000000..fa52799 Binary files /dev/null and b/__pycache__/scene.cpython-38.pyc differ diff --git a/crash.py b/crash.py index d9386da..5ce370d 100644 --- a/crash.py +++ b/crash.py @@ -59,6 +59,9 @@ class Gen(): self.rocket.sprite.rect.bottom = self.res[1] - hauteur if not self.FULLSCREEN: pg.display.set_mode(size=self.res,flags=pg.RESIZABLE) + self.mid_screen = (self.res[0] // 2, self.res[1] // 2) + self.gui.video_size_reset() + self.timer.video_size_reset() elif event.type == pg.VIDEORESIZE: hauteur = self.res[1] - self.rocket.sprite.rect.bottom self.res = (event.w, event.h) diff --git a/launcher.py b/launcher.py index 28dd388..3c811e2 100644 --- a/launcher.py +++ b/launcher.py @@ -40,6 +40,8 @@ class Gen: self.screen = pg.display.set_mode(self.res, pg.FULLSCREEN) if self.FULLSCREEN else pg.display.set_mode(self.res, pg.RESIZABLE) if not self.FULLSCREEN: pg.display.set_mode(size=self.res,flags=pg.RESIZABLE) + self.mid_screen = (self.res[0] // 2, self.res[1] // 2) + self.gui.resize() elif event.type == pg.VIDEORESIZE: self.res = (event.w, event.h) if not self.FULLSCREEN: diff --git a/value.json b/value.json index ea0b69f..588e465 100644 --- a/value.json +++ b/value.json @@ -1 +1 @@ -{"balance": 3752.56} \ No newline at end of file +{"balance": 103635.86} \ No newline at end of file