diff --git a/main.py b/main.py index 27508a2..1491e7e 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,7 @@ def run(): #Jump if needed if jumpState >= 1: - for y in range(5): + for y in range(4): led.unplot(1, y) if jumpState < 3: led.plot_brightness(1, 2 - jumpState, 255) @@ -92,7 +92,8 @@ def dead(): global score, mainMenu basic.clear_screen() basic.show_string("GAMEOVER") - basic.show_string("SCORE" + score) + basic.show_string("SCORE") + basic.show_number(score) basic.clear_screen() basic.plot_leds(""" . . # . . @@ -101,6 +102,7 @@ def dead(): # . . . # # . . . # """) + mainMenu = True #Method to start jumping diff --git a/main.ts b/main.ts index 342c493..49a3a16 100644 --- a/main.ts +++ b/main.ts @@ -31,7 +31,7 @@ function run() { basic.pause(1000 / fps) // Jump if needed if (jumpState >= 1) { - for (y = 0; y < 5; y++) { + for (y = 0; y < 4; y++) { led.unplot(1, y) } if (jumpState < 3) { @@ -97,7 +97,8 @@ function dead() { basic.clearScreen() basic.showString("GAMEOVER") - basic.showString("SCORE" + score) + basic.showString("SCORE") + basic.showNumber(score) basic.clearScreen() basic.plotLeds(` . . # . .