diff --git a/BlankProjectTemplate/src/Gameplay.py b/BlankProjectTemplate/src/Gameplay.py index a10cc55b0fa2e843cbb48aa8285b3688f2e56b3f..89c8ab56417c1e135cfee25b8b2bad7eb5ae45cc 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)