overfloww bei kuhwurf zeichnen beseitigt aber nicht flug kurve korrigiert

This commit is contained in:
Michael S. 2024-01-14 14:56:11 +01:00
parent 590092874b
commit bb4fcf6530

4
v2.py
View file

@ -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))