EasyManua.ls Logo

Commodore 128D - Page 336

Commodore 128D
427 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...
RSPRITE
—Return
sprite
characteristics
RSPRITE
(sprite
number,characteristic)
RSPRITE
returns
sprite
characteristics
that
were
specified
in
the
SPRITE
command.
Sprite
number
specifies
the
sprite
you
are
check
ing
and
the
characteristic
specifies
the
sprite's
display
qualities
as
follows:
Characteristic
0
1
2
3
4
5
RSPRITE
returns
these
values:
Enabled(1)/disabled(0)
Sprite
color
(1-16)
Sprites
are displayed
in
front
of
(0)
or
behind
(1)
objects
on
the
screen
Expand
in
X
direction
Expand
in
Y
direction
Multicolor
yes
=
1,
no
=
0
yes
=
1,
no
=
0
yes
=
1,
no
=
0
Use
RSPCOLOR
to
check
the
sprite
multicolor
values.
EXAMPLE:
10
FOR
I
=
0
TO
5
20
PRINT
RSPRITE
(1,1)
30
NEXT
This
example
prints
all
5
characteristics
of
sprite
1.
RWINDOW
—Returns
the
size
of
the
current
window
RWINDOW
(n)
When
n
equals:
0
RWINDOW
returns
a
value
one
less
than
the
number
of
lines
in
the
current
window.
1
RWINDOW
returns
a
value
one
less
than
the
number
of
rows
in
the
current
window.
2
RWINDOW
returns
either
of
the
values
40
or
80,
depending
on
the
current
screen
you
are
using.
The
counterpart
of
the
RWINDOW
function
is
the
WINDOW
command.
EXAMPLE:
10
WINDOW
1,1,10,10
20
PRINT
RWINDOW(0);RWINDOW(1);RWINDOW(2)
RUN
9 9
40
328
BASIC
7.0
ENCYCLOPEDIA—Basic
Functions

Table of Contents

Other manuals for Commodore 128D

Related product manuals