Commodore VIC-20 User Manual page 109

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

PROGRAM 3: Exercising VIC Person
(Chapter 4)
10 PRINT"
20 PRINT "
30 PRINT '
40 PRINT"
o
'■V
*
»
\
50 FOR T= 1 TO 300: NEXT
60 PRINT"
70 PRINT11
80 PRINT"
90 PRINT"
/
o
EH
1
\
1
100 FOR T= 1 TO 300: NEXT
110 GOTO 10
This program is similar to the iirst program we did, called Your
Name fn Lights. However, instead of drawing an image and
then blanking it out, like the Iirst program did, this one draws a
complete picture, pauses, and replaces the image with another
complete picture. The head and body of the VIC person stays in
the same position while the arms and legs change places. This
gives the illusion of movement from one position to the next.
Lines 10 and 60 bring the cursor to the upper-left corner of the
screen, whrch is known as the home position. This forces the
image of the VIC person to be displayed in the same screen
position each time.
Lines 20, 30, and 40 will "draw" each line of the VIC person's
first image.
Lines 50 and 100 are delay loops, just to give the picture
enough time on the screen.
Lines 70, 80, and 90 draw the second image on the screen. This
takes place so fast thai you can't see the transition — your eye
sees the change from one to the other as instantaneous.
99

Advertisement

Table of Contents
loading

Table of Contents