0 Members and 2 Guests are viewing this topic.
.SMILIE.The Sprite, change the Hex to whatever you want[004466000000817E]->Pic1.Do everything below until CLEAR is pressedRepeat getKey(15)StorePic.Display SpritePt-On(X,Y,Pic1DispGraphPt-Change(X,Y,Pic1RecallPic ClrDraw.Right KeyIf getKey(3) and (X<92)X+1->XEnd.Left KeyIf getKey(2) and (X>2)X-1->XEnd.Down KeyIf getKey(1) and (Y<60)Y+1->YEnd.Up KeyIf getKey(4) and (Y>2)Y-1->YEnd. End of the game loopEnd
:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):Pt-Off(X,Y,[0000000000000000]:X+getkey(3)-getkey(2)->X:Y+getkey(1)-getkey(4)->Y:Pt-On(X,Y,Pic1:DispGraph:End
:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):Pt-Off(X,Y,[0000000000000000]:X+(getkey(3) and (X<88))-(getkey(2) and (X>0))->X:Y+(getkey(1) and (Y<56))-(getkey(4) and (Y>0))->Y:Pt-On(X,Y,Pic1:DispGraph:End
:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):ClrDraw:getKey(3)-getKey(2)+X:!If +1:+1:End:-1:Pt-On(min(,88)→X,getKey(1)-getKey(4)+Y+(=⁻1)min(,56)→Y,Pic1):DispGraph:End
As small as I could get it, 345 bytes of executable code. <snip>
:.SMILE:[004466000000817E]->Pic1:DiagnosticOff:0->X->Y:Repeat getkey(15):ClrDraw:getKey(3)-getKey(2)+X:!If +1:1:End:-1:Pt-On(min(,88)→X,getKey(1)-getKey(4)+Y+(=⁻1)min(,56)→Y,Pic1):DispGraph:End
+1 is smaller and faster than 1