28029 Parallax Inc, 28029 Datasheet - Page 213

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
including the score, which is displayed below the background. By substituting
CLS
Two variables are added,
characters from, and
The initial values of
variables initialize to zero in PBASIC, failure to initialize them would cause the game
character to start in the top-left corner, instead of in the middle.
The symbol variable is set to
background. Since all variables are initialized to zero in PBASIC, this happens anyhow.
However, if you were to insert a
crucial to have this statement.
, the entire backgrounds can be drawn and redrawn without erasing the score.
Maze DATA @0, HOME,
"#####################", CR,
"######
YouLose DATA @243, HOME,
"#####################", CR,
"#####################", CR,
YouWin DATA @486, HOME,
"
"
symbol
points
x = 10
y = 5
' Display maze.
symbol = Maze
Verifying Symbol Values
You can also try commands like DEBUG DEC YouWin to verify YouWin stores the value 486.
·
·
·
·
·
·
#################
·
·
###########
$
VAR
VAR
points
x
and
########", CR,
y
symbol
Word
Byte
to keep track of the player’s score.
have to start in the middle of the obstacle course. Since all
Maze
DATA
", CR,
", CR,
before executing the
to keep track of which background to retrieve
directive before the
Chapter 5: Accelerometer Gaming Basics · Page 201
FOR…NEXT
Maze
background, it would be
loop that displays the
HOME
for

Related parts for 28029