EasyManua.ls Logo

Apple IIe - Page 231

Apple IIe
320 pages
Print Icon
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...
Apple lie Graphics
231
it, by
adding
the
following
lines
to
the
program.
260
PRINT
"COLLISION"
270
FOR J = 1
TO
12
280
PRINT CHR$(7);:NEXT J
290
INPUT A$
300
GOTO
10
The PRINT
statement
in
line
280
activates
the
consol speaker.
Line
290
delay's a
new
game
from
starting
until
return
has
been
pressed.
A BARACADE's score can be easily
kept
track
of
by
merely
incre-
menting
a variable each
time
a
move
has
been
completed
.
130
I=
0
230
I=
I+
1
240
HOME:
PRINT I
A
final
technicality
remains -
creation
of
a
playing
field.
A
square
field
with
scattered barriers
was
chosen.
20
COLOR
=9
30
VLIN 0,
39
AT 0
40
VLIN 0,39 AT
39
50
HLIN 0,39 AT 0
60
HLIN 0,
39
AT
39
Line
20
sets
the
playfield
color
to
orange
(9). Lines 30-60
draw
a
square
border
around
the
field.
70
FORK=
1TO6
80
GOSUB
310
90
HLINL
,
L+SATM
100
GOSUB
310
110 VLIN L,L + 5
ATM
120
NEXT
K
The
previous
addition
to
the
program
draws
randomly
located
barriers
around
the
playfield. The
subroutine
at
310
must
pro-

Other manuals for Apple IIe

Related product manuals