Skip to content

Full Game Functionality Commit: added led matrix, XBEE wireless, and MP3 decoder

Jonathan Doctolero requested to merge apdsModule into FollowMeVideoGame

Follow Me Video Game

Objective

Follow the arrows direction and swipe above the gesture sensor! But be careful, if the arrow is red, you have to swipe in the opposite direction!

To Play

  1. Using the player board, hold your hand close to the gesture sensor to start the game.
  2. Once the game starts, watch for green and red arrows. They'll change every 5 seconds so be sure to swipe in the direction of the green arrow.
  3. But if the arrow is red, then you have to swipe in the opposite direction.
  4. The game ends 60 seconds after it starts. Try to get the highest score!

Tips

  • Arrow changes every 5 seconds, so be sure to swipe at least once every 5 seconds.
  • Swipe your hand over the sensor not too fast, but not too slow

To Build

Main Game Board

In line 20 in main.c, change #define GAME_BOARD_NOT_PLAYER 0/1 to 1. Then build using scons and flash to your SJ2 board connected with the LED matrix, mp3 decoder, and XBEE.

Player Board

In line 20 in main.c, change #define GAME_BOARD_NOT_PLAYER 0/1 to 0. Then build using scons and flash to your SJ2 board connected to another XBEE.

Note: ensure XBEEs are set up to communicate with each other.

Project Wiki

http://socialledge.com/sjsu/index.php/F21:_FollowMe

Merge request reports