0 Members and 3 Guests are viewing this topic.
:.APPVAR:"vMAP"?GDB1:GetCalc(GDB1,16800)
:.AMAP:[FFFFFFFFFFFFFFFF00000000000000000123456789ABCDEFFEDCBA987654321002468ACEFDB97531369258147ADBECF0?Pic1:"vMAP"?GDB0:GetCalc(GDB0)?Q:!If Q:Return:End:0?L?S?X?Y:Fix 5:Fix 1:Repeat getKey(15):ClrDraw:For(A,0,5:For(B,0,6:{B*120+A+L+Q}?C <-note, this is from our dear friend tutorial at http://ourl.ca/4550 (thanks btw):C^16?D:C/16?C:Pt-On(A*16,B*8,C*8+Pic1:Pt-On(A*16+8,B*8,D*8+Pic1:End:End:Pt-On(4,56,S*8+Pic1:Text(16,56,L?Dec:DispGraph:getKey?Z:L-(Z=2)+(Z=3)-(120*(Z=4))+(120*(Z=1))?L:If L>60000:0?L:End:If L>15961:15961?L:End:If Z=54:S?{Q+L}:End:If Z=55:S+1?S:If S=6:0?S:End:End:End:ClrDraw:DispGraph:Fix 4:Fix 0
:.Input:.D=x-position:.Ans=y-position::Lbl XY:{*120+(D/2)+data}→C:If D^2:C^16*8:Return:End:C/16*8:Return
:For(A,0,11:For(B,0,6:A+X→D:Pt-On(A*8,B*8,B+Ysub(XY)+Pic1):End:End
:.APPVAR:"vMAP"→GDB1:Return!If GetCalc(GDB1,16800)→A:Fill 0→{A},16799)
:.AMAP:[FFFFFFFFFFFFFFFF00000000000000000123456789ABCDEFFEDCBA987654321002468ACEFDB97531369258147ADBECF0FFFBDFFDEFFFBFFE80AAB4AAB4BE80FF→Pic1:"vMAP"→GDB0:GetCalc(GDB0)→Q:!If Q:Return:End:0→S→X→Y:Fix 5:Fix 1:Repeat getKey(15):ClrDraw:For(A,0,11:For(B,0,6:A+X→D:Pt-On(A*8,B*8,B+Ysub(XY)+Pic1):End:End:Pt-On(0,56,S*8+Pic1:Text(12,56,X►Dec:Text(32,56,Y►Dec:Text(52,56,120*Y+X►Dec:DispGraph:X-getKey(2)+getKey(3)→X:Y-getKey(4)+getKey(1)→Y:If X=65535:0→X:End:If X>227:227→X:End:If Y=65535:0→Y:End:If Y>133:133→Y:End:If getKey(55):S+1→S:If S=8:0→S:End:End:End:ClrDraw:DispGraph:Fix 4:Fix 0:Return:Lbl XY:{*120+(D/2)}→C:If D^2:C^16*8:Return:End:C/2/2/2/2*8:Return
:.Input::.D = x-position:.C = y-position:.Ans = tile to store there::Lbl ST:→E:C*120+(D/2)+data→C:If D^2:{C} and 240+E→{C}:Return:End:{C}^16+(E*16)→{C}:Return