Remove some unused variables

This commit is contained in:
Piotr Dobrowolski 2017-09-12 03:10:02 +02:00
parent 3137b57c6f
commit 809d2e43ff

View File

@ -11,12 +11,10 @@ import socket
import json
logging.basicConfig(level=logging.INFO)
import random, math, pygame
import random, pygame
from pygame.locals import *
from virtualKeyboard import VirtualKeyboard
import threading
from math import cos
import time
import RPi.GPIO as GPIO
@ -241,7 +239,6 @@ GPIO.output(PIN_SUC10, 1)
GPIO.output(PIN_RELAY, 1)
WINSIZEX, WINSIZEY = 900, 680
counter = 0
timeSec = 0
UP = 1
DOWN = 3
@ -469,32 +466,10 @@ MINY = 100
MAXY = WINSIZEY - MINY
SNAKESTEP = 20
TRUE = 1
FALSE = 0
######## VARIABLES
direction = RIGHT # 1=up,2=right,3=down50,4=left
snakexy = [300,400]
snakelist = [[300,400],[280,400],[260,400]]
counter = 0
score = 0
appleonscreen = 0
applexy = [0,0]
newdirection = RIGHT
snakedead = FALSE
gameregulator = 6
gamepaused = 0
growsnake = 0 # added to grow tail by two each time
snakegrowunit = 2 # added to grow tail by two each time
clock = pygame.time.Clock()
screen = pygame.display.set_mode(WINSIZE, pygame.NOFRAME)
pygame.display.set_caption('PozySejf')
dynamoValSPI = [0,0,0]
dynamoRectY = [50, 50, 50]
dynamoRectX = 50
dynamoXpos = [-100, 0, 100]
############# old main
@ -505,7 +480,6 @@ def main():
passwordLetter = ''
startonce = 0
showstartscreen = 0
while startonce == 0:
startonce = 0