My project idea is to come up with a game that uses the gyroscope, accelerometer, light/camera and sound sensors that most mobile devices have.
I want to make a simpler and smaller version of a game called WarioWare that is a collection of minigames. For my project I will be creating a small collection of mini games, about 3, all using sensors in order to play
Most of the games in Warioware are random and dont make much sense but they are all games that are based on sensors of the game console. So i will emulate that sort of gameplay but on the phone
The first minigame would use the gyroscope to flip pancakes, the second will use the accelerometer and gyroscope to shake a can of soda, and the third will use the light sensor to read the brightness of the room and turn off the light. There could possibly be a fourth minigame that uses the mic.That minigame would require the user to soothe the baby to sleep by making some noise
The purpose of the app is to be silly and fun, the audience will be users who want to play a game
prototype.pdf I will be using about 3-4 different types of sensors for my project.
*TYPE_ACCELEROMETER will return 3 acceleration values in the x,y,z directions. the values are in meters/second^2. Acceleration is a vector with magnitude and direction. X is the right and left of the phone. Y is the top and bottom of the phone. Z is the face and back of the phone.
*TYPE_GYROSCOPE will return 3 angular speed values in the x,y,z directions. the values are in rad/s. Gyroscope measures the rotation of the phone around these axes. The axes are used the same as in the accelerometer the only difference is the additon of rotations on every axis. Rotating counter-clockwise is rotating in the positive direction, rotating clockwise is rotating in the negative direction.
*TYPE_LIGHT is measured in units of lux (lx is a SI derived unit) that measures the luminous flux per unit area, the illuminance of a area. This sensor is an enviromental sensor that measures the ambient light.
The range of possible values for the accelerometer varies depending on the device but some range to +/-2G (19.6133ms2), +/-4G(39.2266ms2), and +/-8G (78.4532ms2).
The range of possible values for the gyroscope depends on the device but some measure a range of 0 to 30 rad/s.
The range of possible values for the light sensor depends on the device but some have measured the range to be between 0 to over 16000 lx.
Note: I was testing my app with my physical device, so it does not test well through the emulator.
SO, for starters I could not finish the app for a number of reasons. I ran into a lot of roadblocks and errors. As of right now my app has all the sensors in place reading the data and stepping through to the next activity.
One of th emost difficult things for me to understand and implement was the graphics and texturing of the project. I tried looking up how to create shapes on android and found articles for using paint and canvas, but I didnt really have enough time to learn how to implement and use the library correctly. Because of that, I dont have any graphics for my game.
I do however have part of the game mechanics in place. Starting with the first game I implemented, the Soda shaking minigame.