EasyManua.ls Logo

Atari XL

Atari XL
262 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
148 The A
tar;
XL
Handbook
(0
The
Joystick
Positions
given
by
STICK(
)
controller
of
the
specified
paddle.
PTRIG()
is
used
to
read
the
Fire
button
of
a
paddle.
The
program
listed
below
uses
a
joystick
to
control
the
drawing
of
lines
on a
graphics
display.
10
REM
JOYSTICK ARTIST
20
REM
SET UP VARIABLES
AND
LABELS
100
POKE
752,1:
PRINT
" i i .SKETCHPAD"
110
GOSUB
20000
192
REM
FIND JOYSTICK
PORT
200
PRINT"
iii
i
.PRESS
FIRE
TO
START"
210
PORT=O
220
IF
STRIG(PORT)=l
THEN
PORT=
PORT=O:
GOTO
220
992
REM
PICTURE
1000
GRAPHICS 7
1010
X=O:Y=O
1020
GOSUB
MESSAGE
1030
POKE
82,0
1040
GOSUB
COLOUR

Related product manuals