0 Members and 1 Guest are viewing this topic.
U+(θ=26 and U≠16)-(θ=24 and U≠1→U
min(16,max(1,U+(θ=26)-(θ=24→U
Code: [Select]::"TOWN CODE:Lbl T1:0→∟ADATA(80:"XXXXXXXXXXXXXXXXX [OOO] X [OOOOO] X 11I11 X 11M11 000X 0 0 X 0 0 X 000000000 →Str1:" 0M→Str2:Output(1,1,Str1:prgmθWALK:If U=16 and θ=26:Then:1→U:Goto T2:End:If V=8 and θ=34:Then:1→V:Goto T3:End:If U=6 and V=5:Then:7→V:8→U:Goto I1:End:Goto T1Code: [Select]::"WALKING ENGINE:3→Z:prgmθTRT:Output(V,U,Ans:DelVar θRepeat θ:getKey→θ:End:16V-16+U+16(θ=34 and V≠8)-16(θ=25 and V≠1)+(θ=26 and U≠16)-(θ=24 and U≠1→T:DelVar B:sub(Str1,T,1:If Ans=sub(Str2,1,1) or Ans=sub(Str2,2,1) or Ans=sub(Str2,3,1:Then:U+(θ=26 and U≠16)-(θ=24 and U≠1→U:V+(θ=34 and V≠8)-(θ=25 and V≠1→V:End:If θ=31:prgmθMENU:If θ=45:Then:U→∟ADATA(78:V→∟ADATA(79:ClrHome:AxesOn:FnOn :ZStandard:Stop:EndCode: [Select]::" PART OF PRGM TRT:If Z=3:Then:"iθπ:sub(Ans,∟ADATA(5)+1,1:EndThese are my main loop / walking code.Can you see any way to make this faster?
::"TOWN CODE:Lbl T1:0→∟ADATA(80:"XXXXXXXXXXXXXXXXX [OOO] X [OOOOO] X 11I11 X 11M11 000X 0 0 X 0 0 X 000000000 →Str1:" 0M→Str2:Output(1,1,Str1:prgmθWALK:If U=16 and θ=26:Then:1→U:Goto T2:End:If V=8 and θ=34:Then:1→V:Goto T3:End:If U=6 and V=5:Then:7→V:8→U:Goto I1:End:Goto T1
::"WALKING ENGINE:3→Z:prgmθTRT:Output(V,U,Ans:DelVar θRepeat θ:getKey→θ:End:16V-16+U+16(θ=34 and V≠8)-16(θ=25 and V≠1)+(θ=26 and U≠16)-(θ=24 and U≠1→T:DelVar B:sub(Str1,T,1:If Ans=sub(Str2,1,1) or Ans=sub(Str2,2,1) or Ans=sub(Str2,3,1:Then:U+(θ=26 and U≠16)-(θ=24 and U≠1→U:V+(θ=34 and V≠8)-(θ=25 and V≠1→V:End:If θ=31:prgmθMENU:If θ=45:Then:U→∟ADATA(78:V→∟ADATA(79:ClrHome:AxesOn:FnOn :ZStandard:Stop:End
::" PART OF PRGM TRT:If Z=3:Then:"iθπ:sub(Ans,∟ADATA(5)+1,1:End