登录
首页 » Android » Andriod DrifBall 重力感应游戏

Andriod DrifBall 重力感应游戏

于 2022-03-11 发布 文件大小:443.44 kB
0 222
下载积分: 2 下载次数: 1

代码说明:

Andriod DrifBall 重力感应游戏源码实例,各个文件说明如下:   BallListener.java:主要功能是感应传感器的姿态数据,通过onSensorChanged方法读取数据,并调用RoatatUtil中的静态方法来确定小球应该移动的方向。   Cannon.java对应地图中的大炮,地图模型中每有一个大炮,就会有一个Cannon对象创建Cannon对象主要的方法是fire,此方法会根据当时小球的位置,创建并返回一个Missile对象,该Missile对象会被添加到一个集合中并被绘制。   DrawThread.java主要功能是提供GameView的定时绘制采用的方式是SurfaceHolder对象将画布锁上,然后对其进行绘制。   DriftBall.java游戏的主类,所有的View对象在这里有所引用,主要的功能是实现游戏的流程控制,提供游戏需要的常量,在视图之间进行切换。   GameMenuThread.java主要负责将菜单及菜单项在屏幕上的位置进行改变以达到动画效果。。   更多文件作用请下载查看源代码。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 安卓平台实现zip的解压源码
    完整的zip解压实现,可以直接运行,本人亲测,速度还可以的,此提供仅为互相交流和学习,
    2023-04-05 03:50:04下载
    积分:1
  • android 232串口通讯
    mApplication = (Application) getApplication(); try { mSerialPort = mApplication.getSerialPort(); mOutputStream = mSerialPort.getOutputStream(); mInputStream = mSerialPort.getInputStream(); /* Create a receiving thread */ mReadThread = new ReadThread(); mReadThread.start(); } catch (SecurityException e) { DisplayError(R.string.error_security); } catch (IOException e) { DisplayError(R.string.error_unknown); } catch (InvalidParameterException e) { DisplayError(R.string.error_configuration); }
    2022-01-24 15:19:55下载
    积分:1
  • 城市选择
    现在很多app都有城市都有城市选择,从别人那里借鉴来的一个城市选择的demo,可以解决很大的问题,大家可以看看,希望会帮助到你
    2023-04-09 07:05:03下载
    积分:1
  • tqChess
    在android平台下设计的一款象棋游戏,运行界面有自己的名字,根据需要可以修改,有些界面美观简洁(The design of a chess game in the Android platform, run the interface has its own name, can be modified as needed, some beautiful and simple interface)
    2013-05-10 13:16:56下载
    积分:1
  • Android游戏源码——忍者快跑
    这是一个忍者快跑的游戏,这个游戏很有意思,对游戏感兴趣的朋友,可以借鉴一下,很不错的游戏开发学习资料。
    2022-04-21 18:41:08下载
    积分:1
  • android 图片放大缩小,简洁 附完整源码
    android 图片放大缩小,简洁 附完整源码
    2013-05-23下载
    积分:1
  • c-jni-java
    C中通过JNI调用java对象接口,也有java调用c接口,是在Android开发环境中运行的(C through JNI call java object interface)
    2013-08-23 10:00:37下载
    积分:1
  • pedometer
    开源Android项目计步器源码,打开软件后,手握手机,可根据你走路时胳膊摆的次数准确测试出你走了多少步,有意思吧,而且这个项目的源码是开源的,分iPhone版和Android版,此为android版的pedometer源代码,有条件的可重新编译运行一下。(Open-source Android project pedometer source, open the software, hand phone, according to the swing arm when you walk out the number of accurately test how many steps you take, it is interesting, and this project' s source code is open source, and the iPhone version of Android version, this version of the pedometer for android source code, conditions can be recompiled to run it.)
    2013-06-06 16:07:19下载
    积分:1
  • android progress 进度条实例 附源码
    android进度条实例
    2013-03-05下载
    积分:1
  • Media_Setting
    基于全志A10 android4.0平台,开发的GPIO控制程序,通过UI界面选择不同状态下GPIO口输出不同的电平状态,来实现由高低电平来控制外部设备;本例程主要实现5个IO口控制Audio和vedio的不同格式输出(Based on Allwinner A10 android4.0 platform, the development of the GPIO control procedures, through the UI interface to select a different state, a different GPIO port output level state, to achieve the high and low to control external devices This course mainly to achieve five IO port control Audio and vedio output different formats)
    2013-10-08 21:33:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载