From a124df9721dcc10176c157c465717dde0d9b2076 Mon Sep 17 00:00:00 2001 From: blissfulboy Date: Thu, 27 Nov 2025 10:30:22 +0000 Subject: [PATCH] updated working version I know this project is from 7 years ago and you probably won't see this lol but I managed to fix an error on this project and made it work again :p --- tank.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tank.py b/tank.py index 4b707a3..1184994 100644 --- a/tank.py +++ b/tank.py @@ -564,8 +564,8 @@ def gameLoop(): fire_power = 50 power_change = 0 - xlocation = (display_width / 2) + random.randint(-0.1 * display_width, 0.1 * display_width) - randomHeight = random.randrange(display_height * 0.1, display_height * 0.6) + xlocation = (display_width / 2) + random.randint(int(-0.1 * display_width), int(0.1 * display_width)) + randomHeight = random.randrange(int(display_height * 0.1), int(display_height * 0.6)) while not gameExit: @@ -700,4 +700,4 @@ def gameLoop(): quit() game_intro() -gameLoop() \ No newline at end of file +gameLoop()