From 03d4cd774315d10fc006d375e5188430d2740bd2 Mon Sep 17 00:00:00 2001 From: Cameron Smart Date: Mon, 20 Apr 2020 14:03:59 -0700 Subject: [PATCH] Fix formatting on condition main:212 --- triple-dungeon/main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/triple-dungeon/main.py b/triple-dungeon/main.py index 46df4a9..3945523 100644 --- a/triple-dungeon/main.py +++ b/triple-dungeon/main.py @@ -209,9 +209,13 @@ class Game(arcade.Window): bullet.remove_from_sprite_lists() # If the bullet flies off-screen, remove it. TEMP change to range calc - if (bullet.bottom < self.view_bottom or bullet.top > self.view_bottom+Config.SCREEN_HEIGHT - or bullet.right > self.view_left+Config.SCREEN_WIDTH or bullet.left < self.view_left): - bullet.remove_from_sprite_lists() + if ( + bullet.bottom < self.view_bottom or + bullet.top > self.view_bottom+Config.SCREEN_HEIGHT or + bullet.right > self.view_left+Config.SCREEN_WIDTH or + bullet.left < self.view_left + ): + bullet.remove_from_sprite_lists() def main() -> None: