|
@@ -25,14 +25,15 @@ async def connect():
|
|
|
|
|
|
|
|
#function that will recive the ESP32 data
|
|
#function that will recive the ESP32 data
|
|
|
def getCurrentScore():
|
|
def getCurrentScore():
|
|
|
- print(30)
|
|
|
|
|
#than do math to figure out power level
|
|
#than do math to figure out power level
|
|
|
-
|
|
|
|
|
|
|
+ return 30
|
|
|
|
|
|
|
|
currentScore = getCurrentScore()
|
|
currentScore = getCurrentScore()
|
|
|
highestScore = 100
|
|
highestScore = 100
|
|
|
highScoreName = ""
|
|
highScoreName = ""
|
|
|
|
|
|
|
|
|
|
+names = []
|
|
|
|
|
+scores = []
|
|
|
|
|
|
|
|
if currentScore > highestScore :
|
|
if currentScore > highestScore :
|
|
|
highestScore = currentScore
|
|
highestScore = currentScore
|
|
@@ -55,10 +56,6 @@ canvas = ctk.CTkCanvas(app, width=500, height=480,highlightthickness=0,)
|
|
|
canvas.config(background="white")
|
|
canvas.config(background="white")
|
|
|
canvas.place(x=0,y=0)
|
|
canvas.place(x=0,y=0)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-names = []
|
|
|
|
|
-scores = []
|
|
|
|
|
-
|
|
|
|
|
def placeLeaderboard():
|
|
def placeLeaderboard():
|
|
|
canvas.create_rectangle(0, 0, 500, 500, fill="grey20", width=2) #grey14 to match background
|
|
canvas.create_rectangle(0, 0, 500, 500, fill="grey20", width=2) #grey14 to match background
|
|
|
|
|
|