0 Members and 1 Guest are viewing this topic.
:.GAME:DiagnosticOff:ClrDraw:[1824187E5A182442]→Pic1:40→A:1→B:0→X:1→C:Full:Line(0,63,95,63):Line(0,63,0,0):Line(95,63,95,0)::For(15):rand^(95-0+1)+0→D:rand^(95-0+1)+0→E:rand^(63-0+1)+0→F:Line(D,F,E,F):End:::Repeat getKey=15:StorePic :Pt-On(A,B,Pic1):DispGraph:Problem may be hereA+pxl-Test(A+1,B+5)→A:A-pxl-Test(A+6,B+5)→A:A-getKey(2)→A:A+getKey(3)→A:If pxl-Test(A+4,B+8)=1:B-(12*getKey(54))→B:Else:B+1→B:End::ClrDraw:RecallPic :End
:pxl-Test(A+1,B+5)→C:.if pixel test is false, it stores zero. if true, it stores 1:pxl-Test(A+6,B+5)→D:.C checks the left side, D checks the right:A-(getKey(2)*(C=0))→A:.only if C is zero, meaning the pixel test is false, will the char move left:A-(getKey(3)*(D=0))→A
A-(getKey(2) and (A>>0) and not(pxl-Test(A+1,B+5→r1))?1,0)+(getKey(3) and (A<<56) and not(pxl-Test(A+6,r1))?1,0)→A
A-getKey(A)→A
:A-getKey(2)→A:A+getKey(3)→A
A-getKey(2)+getKey(3)→A