Final Project

1. Inspiration

Continue to the midterm project, I also made a final project which is related to music. This small game really needs a high concentration to score high points.

2. How to play this game?

This game is going to test you how fast can you judge a song.

As the game start, you can see the image with a Disney Castle.

After 3 seconds, you can see an image which tell you to listen song carefully. User only has about 16 seconds to judge the song. And the song is chosen randomly, so there's no order for user to memorize.

Right after the song ends, an image that contains four different song will pop out. User will only have 3 seconds to decide which song it is, left, right, up or down.

When the game finish, it will have an image showing your performance in this game.

3. Game Design

In order to have an human-computer interaction game, user will use smartphone instead of mouse to have an interaction with computer. Thanks god that matlab has a mobile app to helps us interact with computer.

As I mention above, the user will need to tell the computer which song he/she chooses in the image. With the help of phone's sensor, we can judge the direction easily. Base on the requirement of my game, I'll only use Pitch to determine up, down and Roll to determine right, left.

In order to shorten the code, I also draw support from simulink and stateflow. They help me to simplify my code in the part of determining direction.

Last, the core of this game is absolutely main code. It includes all the logic and algorithms of my game.

4. demo