FANDOM


Trail is a program that can be used to draw pictures or just play with when you're bored.

Required Commands Edit

Controls Edit

  • Use the arrow keys to move. If you press the arrow key opposite the direction that you are moving in, it will erase your trail unless you move in a different direction.
  • Press the (CLEAR) button to clear the screen of pixels that you drew. Doing this will also make you restart in the top-left corner of the screen.
  • Press the (ENTER) to pause the program. While paused, press (ENTER) again to unpause.
  • When you're done drawing/playing, press (2ND) to quit the program. Once you've quit, press (CLEAR) to return to the home screen.

Program Edit

Here's the code for the program:

PROGRAM:TRAIL 
:Lbl 0 
:ClrHome 
:ClrDraw 
:0→R 
:0→C 
:Lbl 1 
:getKey→G 
:Pxl-Change(R,C) 
:C+1→C 
:If G=105:Pause  
:If G=25:Goto 2 
:If G=34:Goto 3 
:If G=24:Goto 4 
:If C=95:0→C 
:If G=21:Stop 
:If G=45:Goto 0 
:Goto 1 
:Lbl 2 
:getKey→G 
:Pxl-Change(R,C) 
:R-1→R 
:If G=105:Pause  
:If G=34:Goto 3 
:If G=24:Goto 4 
:If G=26:Goto 1 
:If R=-1:62→R 
:If G=21:Stop 
:If G=45:Goto 0 
:Goto 2 
:Lbl 3 
:getKey→G 
:Pxl-Change(R,C) 
:R+1→R 
:If G=105:Pause  
:If G=24:Goto 4 
:If G=26:Goto 1 
:If G=25:Goto 2 
:If R=63:0→R 
:If G=21:Stop 
:If G=45:Goto 0 
:Goto 3 
:Lbl 4 
:getKey→G 
:Pxl-Change(R,C) 
:C-1→C 
:If G=105:Pause  
:If G=26:Goto 1 
:If G=25:Goto 2 
:If G=34:Goto 3 
:If C=-1:94→C 
:If G=21:Stop 
:If G=45:Goto 0 
:Goto 4

Alternative Edit

The code on this can be shortened to make a similar program with lower size.

:PROGRAM:TRAIL2
:Lbl A
:ClrDraw
:Func
:FnOff 0,1,2,3,4,5,6,7,8,9
:CoordOff
:GridOff
:AxesOff
:LabelOff
:ExprOff
:0→A
:0→B
:26→C
:0→D
:0→θ
:While θ≠45 and θ≠23
:Pxl-Change(A,B)
:getKey→θ
:If (θ=24 or θ=25 or θ=26 or θ=34) and θ≠C
:θ→C
:B+(C=26 and D≠24)-(C=24 and D≠26)→B
:A+(C=34 and D≠25)-(C=25 and D≠34)→A
:C→D
:A+63(A=-1)-63(A=63)→A
:B+95(B=-1)-95(B=95)→B
:If θ=21
:StorePic 1
:End
:If θ=45
:Goto A

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.