0 Members and 4 Guests are viewing this topic.
Send(768,"VGBuf→K37696→JLbl "SD→I<<code>>.SDDisp KClrDrawLine(X,Y,H-4,W,1Fill(10,JFill(13,JTangent(4,1Fill(13,JDisp JLine(X,Y,H,W,0Fill(9,KEnd
So you have a way to make sure the block doesn't go through another block? Then you can probably use a series of pxl-Test( in a for loop to test if a line is complete. If the shape was 2 blocks tall, you only need to test those two rows.Use the same idea for checking if you lose As for shifting blocks down, I am not sure how that will work Undecided I know I could whip up some code in Grammer, but it would be a little complicated and use several buffers.
Oh, I meant shifting the whole block so when a row gets deleted, the ones above can be shifted down
:For(O,1,26:0→H:For(A,1,10:H +pxl-Test(65535+O*4,1+4*A):→H:End:If H=10:Then:O-1→O:For(P,0,O):For(Q,1,10):O-P→R:pxl-Test(4*R,4*Q)→K:If K=1:Then:Line(4*Q,4*R,4,4,0:Line(4*Q,4*1+R,4,4,1:End:If K=0:Line(4*Q,4*1+R,4,4,0:DispGraph:End:End::End
37696→JSend(768,"VTeMP→K