Joystick Drawing Tip (JOYSTICK.BAS)

Joystick Drawing Tip by Brian Murphy, 4

Description

Joystick Drawing Tip by Brian Murphy, 4

From the Antic disk of February 1989 (Vol. 7 No. 10) — disk A.

The magazine article

From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.

What is in this file

Atari BASIC program · 512 bytes

Dialect
Atari BASIC
Lines
10
Variables
S, X, Y
BASIC listing (10 lines)
1 REM JOYSTICK DRAWING TIP
2 REM BY BRIAN MURPHY
3 REM (c)1988, ANTIC PUBLISHING
10 GRAPHICS 7+16
20 COLOR 1
100 S=STICK(0)
110 X=X+((S=5)+(S=6)+(S=7))*(X<159)-((S=9)+(S=10)+(S=11))*(X>0)
120 Y=Y+((S=5)+(S=9)+(S=13))*(Y<95)-((S=6)+(S=10)+(S=14))*(Y>0)
130 PLOT X,Y
140 GOTO 100