52ky 发表于 2022-11-9 14:28:30

Android研究院之游戏开发小球重力感应(十五)文档

重力感应主要是依托手机的加速度传感器(accelerometer)来实现在Android的开发中一共有八种传感器可是不一定每一款真机都支持这些传感器。由于很多功能用户基本不care的所以可能开发商会把某些功能屏蔽掉。仍是得依据真机的实际状况来做开发,今日我们主要来评论加速度传感器的详细实现方式。

(Gravity sensing mainly relies on the acceleration sensor of the mobile phone to realize that there are eight kinds of sensors in the development of Android, but not necessarily every real machine supports these sensors. Because many function users don't care, the developers may block some functions. The development should still be based on the actual situation of the real machine. Today, we mainly comment on the detailed implementation of the acceleration sensor.)




页: [1]
查看完整版本: Android研究院之游戏开发小球重力感应(十五)文档