From b1573d8b4a75cc5f84b4b7dd7eaeecc317eb5058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Wed, 26 Jan 2022 09:25:24 +0100 Subject: [PATCH] Update for class usage --- lib/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game.py b/lib/game.py index 20af2a0..f0fce58 100644 --- a/lib/game.py +++ b/lib/game.py @@ -53,10 +53,10 @@ class Game: ''' animation = AsciiAnimation() animation.load_ascii(animid) - for frame in animation: + for frame in animation.frames: system("cls||clear") print(frame) - sleep(0.2) + sleep(animation.speed) print()