Line 0:
COLOR15,2,1 = Change Colour to foreground 15 (White) background 2 (Green) and Border Colour 1 (Black)
SCREEN1 = Choose Screen Mode 1 (32x24 Tiles)
WIDTH32 = Select 32 Tiles per Line
KEYOFF = Disable the Function Keys (F1-F5) . This disable the Display of the Functions on Screen
VPOKE(&H2000+ASC(".")/8),&H62 = Poke the value 6 (RED) for this character with the background 2 (GREEN)
VPOKE(&H2000+ASC("*")/8),&H62 = redundant VPOKE since the previous command already changed the colour of the Dot (there is only one entry for every 8 Characters in the table).Poke the value 6 (RED) for this Character Tile and 2 (GREEN) for the Background
V%=&H1800+13*32 = Set the Variable V% with the Enty for the Line 13 of the Name Table (&H1800 for Screen Mode 32). This table is the Characters printed on Screen

Line 1:
CLS = CLear Screen
X%=16 = Set X% with value 16
Y%=12 = Set Y% with value 12. This value is superfluous because the program handle the value 12 direct. It is only to remind that the Y% position is at twelve ...
P%=0 = Reset P% (Points)

Line 2:
LOCATE10,12 = Set Position at Locate 10 , 12
PRINT"CENTIPEDE" = This Prints "CENTIPED" on the Screen
C$=INKEY$ = Get Input Key
IFC$=""THEN2ELSECLS = If there is not Inputed Key Then continue the execution at line 2 Else CLear Screen

Line 4:
D%=STICK(0) = Get Stick(0) (Keyboard) and put the result into variable D%
IFD%=7ANDX%>0THENX%=X%-1ELSEIFD%=3ANDX%<30THENX%=X%+1 = If D% (Direction) equal 7 (Left Cursor) and X% maior than  0 then subtract -1 from X else if D% (Direction) equal 3 (Right Cursor) and X% minor than 30 then Add +1 to the X% value

Line 5:
IFVPEEK(V%+X%)=ASC("*")THEN1ELSEIFVPEEK(V%+X%)=ASC(".")THENP%=P%+1 = If V%+X% (Video Vertical Position 13 + X% Position) equal "*" Then execute line 1 Else if there is Tile (".") at position (V%+X%) then P% (Points) equal P% + 1

Line 8:
LOCATEINT(RND(1)*30+1),23:PRINT"*"; = Set Position at INTEGER (RaNDom 1-30) , 23 . Print "*"
LOCATEINT(RND(1)*30+1),23:PRINT"."; = Set Position at INTEGER (RaNDom 1-30) , 23 . Print "."
LOCATE31,23:PRINT" "; = Print a Space at the last character on Screen to "Scroll Up" the Text
LOCATEX%,12:PRINT"O" = Print the tile "O" at column X% line 12
LOCATE10,0:PRINT"Score:";P%; = Print the text "Score" plus the variable P% (Points) at position 10,0
IFP%=5000THEN1ELSEGOTO4 = If P%(Points) hits 5000 restart else GO TO line 4
 