From e8ffa365fe4e69f1c9d328c5c3bb95c11ea43cc3 Mon Sep 17 00:00:00 2001 From: Jaineel Shah Date: Tue, 29 Sep 2020 16:11:21 +0530 Subject: [PATCH] Updated Slither.py --- slither.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/slither.py b/slither.py index e970e99..ce8abb1 100644 --- a/slither.py +++ b/slither.py @@ -186,9 +186,6 @@ def gameLoop(): lead_x_change =0 elif event.key == pygame.K_p: pause() - #if event.type == pygame.KEYUP: - # if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT: - # lead_x_change = 0 if lead_x >= display_width or lead_x < 0 or lead_y >= display_height or lead_y < 0: @@ -199,8 +196,6 @@ def gameLoop(): gameDisplay.fill(white) #clearing , faster - - #pygame.draw.rect(gameDisplay, red, [randAppleX, randAppleY, AppleThickness, AppleThickness]) gameDisplay.blit(appleimage, (randAppleX, randAppleY))