From: Simon Cross Date: Wed, 2 Mar 2016 14:58:40 +0000 (+0200) Subject: Flake8 fixes. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=721b4c2e5e6d17c39f47b3886da3d27d4d7344ae;p=koperkapel.git Flake8 fixes. --- diff --git a/koperkapel/scenes/base.py b/koperkapel/scenes/base.py index c6b8752..dae87e3 100644 --- a/koperkapel/scenes/base.py +++ b/koperkapel/scenes/base.py @@ -37,7 +37,7 @@ class Engine: def move_screen(self, offset): self._viewport = (self._viewport[0] + offset[0], - self._viewport[1] + offset[1]) + self._viewport[1] + offset[1]) @apply_events def update(self, dt): diff --git a/koperkapel/scenes/level.py b/koperkapel/scenes/level.py index c37b3e3..f4a031a 100644 --- a/koperkapel/scenes/level.py +++ b/koperkapel/scenes/level.py @@ -4,7 +4,7 @@ from pgzero.constants import keys from pygame import Surface from ..loaders.levelloader import levels from .base import Scene, ChangeSceneEvent -from ..constants import TILE_SIZE, WIDTH, HEIGHT +from ..constants import TILE_SIZE class LevelScene(Scene): diff --git a/koperkapel/scenes/menu.py b/koperkapel/scenes/menu.py index 9769ff6..d8e3438 100644 --- a/koperkapel/scenes/menu.py +++ b/koperkapel/scenes/menu.py @@ -6,8 +6,6 @@ from ..actors.navigator import ActorNavigator from .base import Scene, ChangeSceneEvent, QuitEvent - - class MenuScene(Scene): """ Main menu scene. """