Control The Ball With Accelerometer
Android Game Development
Hi Guys, Finally I m able to publish a much awaited game in android platform. This game took me 18 days and nights full on to realize. Of course I got help here and there. My roommate keshav Ladha is a newbie in this field. he gave me hand in designing graphics and and my ex teacher Mr. Sudipta Chatterjee helped in some coding. To tell you guys the truth the simple purpose of this project was to pass the time here in college. The college has been reopened after a two and a half months of leave and the initial days of the college are filled with intro classes as well as the hullabaloo related to the newcomers' fresher's party, Independence Day Parade and all those stuffs. So i decided to take some time off from the college and dedicated myself in designing a new game. And two and half weeks of hard work finally paid.
To be honest, I would like to add here one certain thing. I was involved in embedded systems last to last semesters. I worked in various sensors. In making DIY (Do-It-Yourslef) projects, i used ultra sonic sensors and then some IR sensors. Again for another project I tried my hands on accelerometer but could not properly integrate my Arduino with it. The problem which i faced is that while you work on such sensors, you got to work on so many wires to attach that sometime the hardware cant be properly calibrated. Of course you can make certain good products but you got to work harder in case you don't use a simulator like Proteus or something. What I m trying to do here is I m advocating the importance of knowing how to interface smartphone with your development board like Arduino. Nowadays smartphones come equipped with almost all the sensors we know of. Few months back I wrote an article in this very blog about the smarthome application. That was my first step to learn how to interface a hardware (Arduino) and a software (Android). Now in order to make this game, i have used accelerometer and with the asme procedure, we can use the smartphones sensor to make our DIY.
Coming back to our discussion on the game development, the game which I got published in Play store on the morning of my nation's 69th Independence Anniversay, i.e 15th August, 2015. This game, is about controlling a red ball using the accelerometer control of the phone and avoid its intersection with some given lines and take it to its destination, that is a grey circle. The game can be downloaded from the given link:
https://play.google.com/store/apps/details?id=com.mayukh.mayukhchakraborty.controlball&hl=en. The code of this project is here,:
https://drive.google.com/file/d/0B-7SqmMCsRSObVE2U2tSQy1BTnM/view?usp=sharing