diff options
-rw-r--r-- | src/sliceitoff/__main__.py | 4 | ||||
-rw-r--r-- | src/sliceitoff/display/display.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/sliceitoff/__main__.py b/src/sliceitoff/__main__.py index 2da9aa8..bf48169 100644 --- a/src/sliceitoff/__main__.py +++ b/src/sliceitoff/__main__.py @@ -34,8 +34,8 @@ def sliceitoff(): while True: - dt = clock.tick(60) - for fun in (status, field, enemies): + dt = clock.tick() + for fun in (status, field, enemies, player): fun.update(dt) display.update( diff --git a/src/sliceitoff/display/display.py b/src/sliceitoff/display/display.py index ae98134..e4cc670 100644 --- a/src/sliceitoff/display/display.py +++ b/src/sliceitoff/display/display.py @@ -8,7 +8,8 @@ class Display(): mode_info = pygame.display.Info() self.screen = pygame.display.set_mode( (mode_info.current_w, mode_info.current_h), - pygame.FULLSCREEN | pygame.SCALED ) + pygame.FULLSCREEN | pygame.SCALED, + vsync = 1 ) Scaling.update_scaling(self.screen.get_size()) def update(self, groups = None): |