From 0bbbd05fb0cee60b9606b5e455cc02a19752a941 Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Sat, 15 Jan 2022 21:06:33 -0500 Subject: [PATCH] Change Label.text to receive strings --- PyBadge_Blinka_Jump_Game/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyBadge_Blinka_Jump_Game/code.py b/PyBadge_Blinka_Jump_Game/code.py index d4eaf726b..0209aa56b 100644 --- a/PyBadge_Blinka_Jump_Game/code.py +++ b/PyBadge_Blinka_Jump_Game/code.py @@ -222,7 +222,7 @@ while True: sparky0_grid.x = 5 sparky1_grid.x = 40 sparky2_grid.x = 65 - score_area.text = 300 + score_area.text = str(300) new_game_text.text = "BLINKA JUMP" life() # if start is pressed... @@ -246,7 +246,7 @@ while True: # adds 10 points every time a Sparky is cleared total_score = score + jump_score # displays score as text - score_area.text = int(total_score) + score_area.text = str(int(total_score)) # puts Sparky states and x location into callable arrays for s in range(3):