From 5083cc40fb5e2265bcacf5d7239e8b13213d85bc Mon Sep 17 00:00:00 2001 From: jjorge Date: Sat, 8 Oct 2022 00:12:26 +0200 Subject: [PATCH] Fixed storage initialization --- examples/flappybird/flappybird.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/flappybird/flappybird.py b/examples/flappybird/flappybird.py index 0fe8a037..4d993f77 100755 --- a/examples/flappybird/flappybird.py +++ b/examples/flappybird/flappybird.py @@ -17,8 +17,7 @@ bird.score = 0 bird.vy = 0 -storage.setdefault('highscore', 0) - +storage = dict(highscore=0) def reset_pipes(): pipe_gap_y = random.randint(200, HEIGHT - 200)