28029 Parallax Inc, 28029 Datasheet - Page 215

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
As you’re navigating your asterisk over
because
the asterisk was moved over
statement changes
corresponding background, then ends the game.
Your Turn – Modifications and Bug Fixes
The game doesn't refresh the "
Education's Reset button. It only works when you click the Run button on the BASIC
Stamp Editor. That's because the
program is downloaded. If the program is restarted with the Reset button, the BASIC
Stamp Editor doesn't get the chance to store the spaces, dollar signs, etc, so the percent
signs that were written to EEPROM are still there. To fix the problem, all you have to do
is check each character that gets read from EEPROM during the initialization. If that
character turns out to be a "
' This routine gets skipped while symbol is still = Maze.
' was changed to YouWin or YouLose, display new background & end game.
Save TiltObstacleGame.bs2 as TiltObstacleGameYourTurn.bs2
Modify the
FOR index = 0 TO 242
NEXT
Verify that both the BASIC Stamp Editor's Run button and the Board of
Education's Reset button behave the same after this modification.
symbol
IF (symbol = YouWin) OR (symbol = YouLose) THEN
ENDIF
READ index + symbol, char
IF(char = "%") THEN
ENDIF
DEBUG char
FOR index = 0 TO 242
NEXT
END
char = "$"
WRITE index + symbol, char
READ index + symbol, char
DEBUG char
still stores
FOR...NEXT
symbol
%
Maze
", use the
to either
"#"
. The
loop in the initialization that displays the maze like this:
$
DATA
" symbols when you re-run it with the Board of
,
"W"
WRITE
YouWin
SELECT…CASE
" "
directive only writes to the EEPROM when the
,
"I"
Chapter 5: Accelerometer Gaming Basics · Page 203
,
command to change it back to a "
"$"
, or
' Display maze
' <--- Add
' <--- Add
' <--- Add
' <--- Add
or
, or
YouLose
"N"
"%"
' 242 characters
' Get character
' Display character
' Next iteration of loop
' End game
' End symbol-if code block
statement only changes that when
. Whenever the
, this next routine gets skipped
, this routine displays the
SELECT…CASE
If symbol
$
".

Related parts for 28029