From bb4fcf65301550fc2e21783b85c39514ced21f48 Mon Sep 17 00:00:00 2001 From: Megamichi Date: Sun, 14 Jan 2024 14:56:11 +0100 Subject: [PATCH] overfloww bei kuhwurf zeichnen beseitigt aber nicht flug kurve korrigiert --- v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2.py b/v2.py index 6ddc9bc..8fe3969 100644 --- a/v2.py +++ b/v2.py @@ -50,7 +50,7 @@ if __name__ == "__main__" and running == True: startscreen = False feld = bg_char(feld," ") - feld = change_block(feld,ascii.cowsay,[int(ty/2)-2,int(tx/2)-12]) + feld = change_block(feld,ascii.cowsay,[int(ty/2)-2,int (tx/2)-12]) while running == True: wobl = "-" * (tx - wobble_pos - 5) wobr = "-" * wobble_pos @@ -87,7 +87,7 @@ if __name__ == "__main__" and running == True: if key_space == True: break points_prozent = int((points/txhalb)*100) - for a in range(int(points*2)): + for a in range(int(points*2)-1): feld = change_block(feld,"-"*a+"🐄️",[0,0]) feld = change_block(feld,str(points_prozent)+"%",[1,int(tx/2-2)]) print(strfeld(feld))