From 345b51e8e6af525d38c3659e1955e03faf932be8 Mon Sep 17 00:00:00 2001 From: andyh98 <hameea1@mcmaster.ca> Date: Tue, 13 Nov 2018 09:23:19 -0500 Subject: [PATCH] touch up --- BlankProjectTemplate/src/Gameplay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BlankProjectTemplate/src/Gameplay.py b/BlankProjectTemplate/src/Gameplay.py index a10cc55..89c8ab5 100644 --- a/BlankProjectTemplate/src/Gameplay.py +++ b/BlankProjectTemplate/src/Gameplay.py @@ -91,7 +91,8 @@ while run: ## snake.die() -## +#---------------------FOR LOOPING--------------------- + ## if x < 0: ## #x = 0 ## x = screenSize - size @@ -105,6 +106,8 @@ while run: ## #x = 500 - size ## x = 0 +#------------------------------------------------- + if(abs(x - food_location[0]) < 15 and abs(y - food_location[1]) < 15): score += 10 print(score) -- GitLab