LED reaction game
techmani
Posts: 1
i am using basic stamp to create a led reaction game. i need help with the code. im going to run the program on top my sumobot and basically the game is 7 LEDs, 1 LED is Green, and the others are red. the objectives are to hit a button when the Green light lights up. for the first level the leds light up in order and travel up and down. i·already have the code for this.·for my second level im going·to have the LEDs go random until the green light is pressed. I need the code for the random Level here are my variables:
· RandomPlay VAR Word
······· Test VAR Bit·················· '· Variable to store whilst testing ideas
······· Counter VAR Word·············· '· used to control loops
······· LoopTimer VAR Word············ '· Loop tests
······· Blinktime VAR Word············ '
······· GameOver VAR Byte
· RandomPlay VAR Word
······· Test VAR Bit·················· '· Variable to store whilst testing ideas
······· Counter VAR Word·············· '· used to control loops
······· LoopTimer VAR Word············ '· Loop tests
······· Blinktime VAR Word············ '
······· GameOver VAR Byte
Comments
As an aside I'm not sure I'd want people banging on the top of my little bot in the frenzy of trying to win a game.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Check it out.
http://www.parallax.com/Portals/0/Downloads/docs/books/edu/Wamv2_2.pdf
jeff