From bc660afdbc38ca5d30a27b5b3e11740f30309fb4 Mon Sep 17 00:00:00 2001 From: Megamichi Date: Sun, 14 Jan 2024 22:36:39 +0100 Subject: [PATCH] problem mit engin --- tengine/__pycache__/main.cpython-311.pyc | Bin 3678 -> 4061 bytes tengine/main.py | 10 +++-- v2.py | 46 +++++++++++++++-------- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/tengine/__pycache__/main.cpython-311.pyc b/tengine/__pycache__/main.cpython-311.pyc index 9215535f9998bd54320bd4545b52626570a1efff..8b0aacfb65ca55c71c2d322aa45e303b6ef13b90 100644 GIT binary patch delta 1440 zcmZ8hO>7%Q6yDjLUH|NEY$s9DG^Vi=r>&tz38GdTLs|z5+Ctp}C!$8F))1}Ufl^~iw(LLkMJr4~y;NL=X6QYDZgka%x5Hld@{_h#Ok z_y1;p4es=rUzny>f;DvRj`ho`*+V{CJ#u!D$=86Jl`}M>GUd87t}#DTuaj{X)8OQ0 zEUzemPgj64b7{W~{=rm1n#YP8dNc1W=J4+vdKqz8Tw^|2nlX zyEzNitNKU{_;kcE;DMW245hhTuu&v2p?pgMqLUu>IWDGVCbREmIPVo_=``_+E!snt z#g8;Ox=xy^`za%Lfq$#+SL_ay!uRiK33mKVlAQy z58)LpUn=w5TwUWf-5|Uh*d_Gm)U@sbfnAkB;9(M_Q$o`Q5|8x6Lp|{zRn?O0M%Okh)?O zSX8d7b39ilbM($5=zd>p+ME;G3&6*$N@0MCv_m~NkE}#)#Fk@gscjmr(r}H2VdH#u zXku8q=*9tnN_30QwQ#rHARW3>n6aED4THEt{Hz^?M*XS%ap*-j^XCw3Mb)lVU7gAo zv$K3i{O#&LU>h;^j5vZgD0GRq`zBcV-hKX99~w9c5GDNirm=lvsAlsPOvnikg+e+z(Ep*fKo_J1!blHXa~8faY8>kxSU$c0?cgzBL!|g#p~67Pp`tuY+U=ui(Rmo|x?`@f#D%6AejLUn34Kk)1%-%9YjNtzbhU z9%LgfB_E$0TS~3;tPS4^u4Psat%s|DftnFnf9K2jI~TWxlGVZERU^J_#2X4K{HFUV zZ`vhHb2qqycuzXyG!mcaH4l!rs%5`#-U||Es&INZ_L^g>?84h+vr~BHC$Z~(<#Lf- z$y=lR99+g(Ed4G%GEZE1Fkc-!T~RA?<)sECBmt>3L8HXqkp2$_Ar~;+{}7b=k>P;Y KH7`+|>3;$2A~_rY delta 1081 zcmZ8fT}TvB6rMXfv$H=lJFc3xvbgTLr6XEtmRcq%zC=G1(nEr+>)z3}Y*)^%iD0@9 z7DfgxSLlZVp+AM9AbRcRy@y@!AqI>dttW{f=&5sOtp_hN-$Gp_~6t$f4D{)8Bp;xZK%gdr#OQE7n;DOARti#ieAR6+Dm7owNy)PsJN zmQfY0Mzuk~@aNyxhzWr$E0v@t|0~SqNUemt`1S-DA?5s+84;nb4m332W3R=Q`Obou zKWqMi8pY@FzGvbCDFbEM?qGjhPb^Dv*-# z%>)s0!WTQiEAw6ddh%rw6BWIk8^}p^Muz|{HtzUL%2>O!U+2OsWpq52xEu$lVM%F> z=&T?GNH6;#^|5LBQe>T2(v@^Fg<8Bk+yUw7T^IW;pFU_S3t@mkpbAZfAe63dDVZ$T zS|iB$xU-%uIP2wt)DAkkqr`godmt)O)C4OAV4mCTmgB%9^xrdFY07R+<%N2_*px z!^IL>b9LQP+pI7sKokiqJ0BH8fhzV~Gv+&R1DyyN1p!OP*Uso%Pnuw2HG0u=fQQ5o za>AxozI^od@Y3+MAj*BDgo|X;U$s1y53U5a1>)v3$Hl%c9leVK%Ypl?E5TJ#^oKXp z$ZFTx`KR4)!o~W-%|*4nptf&2c= 11 : + running = False + print("please resize you teerminal over 11 lines") if __name__ == "__main__" and running == True: feld = genfeld() - feld = change_block(feld,ascii.logo,[1,int(tx/2-21)]) + feld = change_block(feld,ascii.logo,[0,int(tx/2-21)]) while startscreen == True: - feld = change_block(feld,ascii.start_screen_text,[10,int(tx/2-5)]) - print(strfeld(feld)) + feld = change_block(feld,ascii.start_screen_text,[ty,int(tx/2-5)]) + prfeld(feld) sleep(0.2) - feld = viereck(feld,[11,int(tx/2-4)],11,1," ") - print(strfeld(feld)) + clear() + if key_space == True: + while not key_space == False: + startscreen = False + + feld = viereck(feld,[ty,int(tx/2-4)],11,1," ") + prfeld(feld) sleep(0.2) clear() if key_space == True: @@ -51,13 +59,18 @@ if __name__ == "__main__" and running == True: feld = bg_char(feld," ") feld = change_block(feld,ascii.cowsay,[int(ty/2)-2,int (tx/2)-12]) + cows = "🐵🐒🦍🦧🐕🐯🦝🐩🐅🐴🐎🦄🦌🐗🐂🐃🐄🐪🐫🦙🦒🐹🦘🦡🐧🕊️ 🦅🦆🦉🐍🦎🐊🦜🦚🦩🐲🐉🦕" + cowlistlength = len(cows) + cow = "#" cows[random.randint(0, cowlistlength - 1)] + clear() + #feld[ty][tx] ### 2zeichen kuhh mach probleme while running == True: wobl = "-" * (tx - wobble_pos - 5) wobr = "-" * wobble_pos - wobbl = f"{wobr}🐄️{wobl}" - feld = change_block(feld," " * txhalb+"↓",[ty-3,0]) - feld = change_block(feld,f"[{wobbl}]",[ty-2,0]) - print(strfeld(feld)) + wobbl = f"{wobr}{cow}{wobl}" + feld = change_block(feld," " * txhalb+"↓",[ty-1,0]) + feld = change_block(feld,f"[{wobbl}]",[ty,0]) + prfeld(feld) if wobble_pos > txhalb: wobble_site = "left" else: @@ -87,13 +100,14 @@ if __name__ == "__main__" and running == True: if key_space == True: break points_prozent = int((points/txhalb)*100) - for a in range(int(points*2)-1): - feld = change_block(feld,"-"*a+"🐄️",[0,0]) + clear() + for a in range(int(points*2)-2): + feld = change_block(feld,"-"*a+"🐄️",[0,0]) feld = change_block(feld,str(points_prozent)+"%",[1,int(tx/2-2)]) - print(strfeld(feld)) + prfeld(feld) sleep(0.01) clear() - print(strfeld(feld)) + prfeld(feld) ## Randomly choose a cow @@ -131,7 +145,7 @@ if __name__ == "__main__" and running == True: # change_block(feld,"@",[x, y]) # sleep(schlafzeit) # change_block(feld,"#",[xold, yold]) #☁️ -# print(strfeld(feld)) +# prfeld(feld) # print() #sleep(2) ##sys.exit(home + curon) \ No newline at end of file