1 / 28

Ga mes' Controling by Mobile Phone's Sensors on Android Platform

Software Institute, Nanjing University. Ga mes' Controling by Mobile Phone's Sensors on Android Platform. Lecturer: Lisa Hua Producer: Jack Shi PM: Yinlan Zhao TM: Yemin Sui Software Institute, NJU. Contents. Everything From the Name. What is in the name “ Mobic ”?. from.

Download Presentation

Ga mes' Controling by Mobile Phone's Sensors on Android Platform

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Institute, Nanjing University Games' Controling by Mobile Phone's Sensors on Android Platform Lecturer: Lisa Hua Producer: Jack Shi PM: Yinlan Zhao TM: Yemin Sui Software Institute, NJU

  2. Contents

  3. Everything From the Name

  4. What is in the name “Mobic”? from Mobic = Mobile + Computer The logo “Mobic” is from Google

  5. Innovations Innovation-1: The project’s name and logo Innovation-2:User Experience Innovation-3: User Interface Innovation-4: Powerful Program Interface Innovation-5: Using XML Innovation-6: Data Processing Innovation-7: Not only games

  6. Innovation-2: User Experience Give a sense of reality to users. It allows users to exercise instead of using mouse and keyboard only. Games is no longer only a game, they are sports that your opponent is PC

  7. Innovation-3: User Interface Use the thought of games’ control in the UI control. Your only work on PC is double click the application. Make users feel that the routine use the system is very smooth, and make the system keep consistent and convenient. TM open source

  8. Innovation-4: Powerful Program Interface Mobile Terminal: The difference between Sofa Mode and Sports Mode is using different sensors.

  9. The Routine to Start a Mode Create a new object, newMode newMode.prepare(); newMode.start(); newMode.suspend(); newMode.cancel();

  10. How to extend? Extend a new abstract mode like SofaMode and SportsMode • Override prepare() to set sensors that to be used • Override cancel() to unregister sensors that be used Implement a new mode for game like Game_SpeedMode • Implements the abstract method process(Message msg); • This method is used for process data from sensors

  11. Motion Definition The only job you should do is • Initialize a motion by using constructor according to your process in the method process(Message msg); • Then dispatch it by motion.dispatch();

  12. PC Terminal Nearly the same with mobile terminal The motion on PC we call it Action When we get a Action newAction, we use newAction.doAction() to control our game.

  13. Innovation-5: Using XML Using xml to configure a game’s properties make the Expansibility stronger.

  14. Innovation-6: Data Processing —— Difficulties Sensor data is not very accurate; 1 Acceleration Sensor’s data is not the real acceleration, they include the gravity. 2 The data are very small like 0.000213111; 3 The problem of multi-thread. 4

  15. z x y G Solutions——How to get accelerations? Frameworks designed for performance Frameworks designed for performance Firstly, get the acceleration that has gravity component, and orientation data. • acc_x=acc[0]-9.8*sinθ • acc_y=acc[0]+9.8*sinα • acc_z=sqrt(9.82-acc_x2-acc_y2)

  16. Solutions——Data are too small to computer V = V0+ATS = V0T+0.5*AT2 The result S is often NAN because the T=50ms=0.05s. To make the computing get a suitable result, we magnify the time T 1000 times.

  17. Solutions——Multi-Thread Problem To solve the chaos of multi-thread, and get data in order, we use message mechanism Message msg= mode.getDataHandler().obtainMessage(1, msg_obj); mode.getDataHandler().sendMessage(msg); SensorEventListenerMessageQueueMode.process(Message msg)

  18. Innovation-7: For Games, But Not Only Games Speed Tennis SBKX VR2 So many games!

  19. Innovation-7: For Games, But Not Only Games In the future, even in theremote control domain for TVs or others

  20. Market Analysis

  21. Our Advantages Low Cost Conveniences Large Number of Users Easy to Maintain

  22. Our Advantages Low Cost We needn’t to develop games for our system, the system’s task is to improve users’ experience on existed games on PC. On the other hand, you needn’t buy more equipment. You only need an Android mobile phone.

  23. Our Advantages Convenience You needn’t carry other equipment. You can use the system wherever and whenever only if you have a mobile phone and a computer.

  24. Our Advantages Powerful interface and using xml make the system is so easy to extend that you needn’t change its source code. On the other hand you needn’t maintain the games the system control. Easy to maintain

  25. Our Advantages Large Number of Users • In China, there are more than 0.1 billion computer users; • This shows that we have many users and potential users; • In China, the users of Android has exceed Iphone; and in the world even though the users of Android is less than Iphone, but it is increasing very fast.

  26. Summary Mobic is a system that has lower risk than other same kind products Low cost; Number of users; Easy to maintain; Convenience; Etc.

  27. Mobic TM

  28. Q&A 2010 PRC Mobic DECEMBER 21-10, 2010 | Nanjing, Jiangsu TM

More Related