mbed MusicPlay Game

Designed by Leann Mayberry and Vathsan Ramprakash for ECE 4180 in Spring 2020.

This page describes the function and features of MusicPlay, a Guitar Hero like game made for mbed using three capacitive touch sensors, two pushbuttons, a speaker, and a uLCD display.

There will be three columns (red, green, and blue) on the uLCD display under the score counter. Each column will have notes in the form of colored circles falling down the screen. When the notes are within the target area at the bottom of the screen, either one, or a combination of the touch sensors need to be pressed. When a note is hit within the target area, a note in the respective song is played on the speaker and the player's score increases.

The game relies on three threads which are used as follows: one controls the state of the game, the second manages most of the game play, and the third (located in main) manages the title and menu screens of the game. The states that will be used in the game are the welcome screen, the menu to choose songs, a state for each song, and a state where just the song is played. The player can choose between two songs and navigate between screens using two pushbuttons. On the uLCD screen, there will be a score counter. If a note or combination of notes is hit at the right time, the score goes up by however many notes have been hit.

To navigate within the game the two pushbuttons are used. From the main menu the right can be used to scroll through the menu options while the left selects. From any of the other states the left pushbutton can be used to return to the menu.

During the game, the objective is have the capacitors activate the note players within the game to play the song and collect as many points as possible. The note players light up when the capacitors are touched. There is some delay in activating the note players, so the user must be careful to press early enough to catch the notes.

Game Presentation

Pictures of the Game Display

Demo of the Game

Link to Import the Program

Import program4180MusicPlayGame_LeannMayberry

Program and libraries to run the MusicPlay game designed for ECE 4180 in Spring 2020.

Circuit Schematic

https://os.mbed.com/media/uploads/onsideiut/4180schematic.png


Please log in to post comments.