Shop OBEX P1 Docs P2 Docs Learn Events
LED reaction game — Parallax Forums

LED reaction game

techmanitechmani Posts: 1
edited 2010-01-21 03:52 in BASIC Stamp
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

Comments

Sign In or Register to comment.