Remove some unused variables
This commit is contained in:
parent
3137b57c6f
commit
809d2e43ff
@ -11,12 +11,10 @@ import socket
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
import random, math, pygame
|
import random, pygame
|
||||||
from pygame.locals import *
|
from pygame.locals import *
|
||||||
from virtualKeyboard import VirtualKeyboard
|
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
from math import cos
|
|
||||||
import time
|
import time
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
|
||||||
@ -241,7 +239,6 @@ GPIO.output(PIN_SUC10, 1)
|
|||||||
GPIO.output(PIN_RELAY, 1)
|
GPIO.output(PIN_RELAY, 1)
|
||||||
|
|
||||||
WINSIZEX, WINSIZEY = 900, 680
|
WINSIZEX, WINSIZEY = 900, 680
|
||||||
counter = 0
|
|
||||||
timeSec = 0
|
timeSec = 0
|
||||||
UP = 1
|
UP = 1
|
||||||
DOWN = 3
|
DOWN = 3
|
||||||
@ -469,32 +466,10 @@ MINY = 100
|
|||||||
MAXY = WINSIZEY - MINY
|
MAXY = WINSIZEY - MINY
|
||||||
|
|
||||||
|
|
||||||
SNAKESTEP = 20
|
|
||||||
TRUE = 1
|
|
||||||
FALSE = 0
|
|
||||||
|
|
||||||
|
|
||||||
######## VARIABLES
|
######## 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()
|
clock = pygame.time.Clock()
|
||||||
screen = pygame.display.set_mode(WINSIZE, pygame.NOFRAME)
|
screen = pygame.display.set_mode(WINSIZE, pygame.NOFRAME)
|
||||||
pygame.display.set_caption('PozySejf')
|
pygame.display.set_caption('PozySejf')
|
||||||
dynamoValSPI = [0,0,0]
|
|
||||||
dynamoRectY = [50, 50, 50]
|
|
||||||
dynamoRectX = 50
|
|
||||||
dynamoXpos = [-100, 0, 100]
|
|
||||||
|
|
||||||
############# old main
|
############# old main
|
||||||
|
|
||||||
@ -505,7 +480,6 @@ def main():
|
|||||||
passwordLetter = ''
|
passwordLetter = ''
|
||||||
|
|
||||||
startonce = 0
|
startonce = 0
|
||||||
showstartscreen = 0
|
|
||||||
|
|
||||||
while startonce == 0:
|
while startonce == 0:
|
||||||
startonce = 0
|
startonce = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user