Android游戏开发之旅(一)

      今天Android123开始新的Android游戏 开发 之旅 系列,主要从控制方法(按键、轨迹球、触屏、重力感应、摄像头、话筒气流、光线亮度)、图形 View (高效绘图技术如双缓冲)、音效(游戏音乐)以及最后的OpenGL ES(Java 层)和NDK 的OpenGL和J2ME游戏移植 到Android方法,当然还有一些游戏实现惯用方法,比如地图编辑器,在Android OpenGL如何使用MD2文件 ,个部分讲述下Android游戏开发的过程最终实现一个比较完整的游戏引擎。相信大家都清楚Android Market下载 量比较好的都是游戏,未来手机 网游的发展相信Android使用的Java在这方面有比iPhone 有更低的入门 门槛。(文/Android开发网)

      对于很多游戏使用屏幕 控制一般需要考虑长按事件,比如在动作类的游戏中需要长按发射武器,结合Android Button模型,我们实现一个带图片的Button的长按,为了更清晰的显示原理,Android开发网这里使用ImageButton作为基类

下面是重复Button Listener接口的定义 ,调用时在Button中先使用setRepeatListener()方法实现RepeatListener接口

本类大家可以直接在自己的View中implements实现RepeatListener接口即可。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
高清版 Book Description “Wolfenstein 3D”-like and ”Doom”-like game apps are some of the classic Android games presented in the original edition of this book. Since their release, Android has progressed with the debut of Android 4.0, adding better fonts, new User Interface and Experience (UI/UX) APIs, tablet considerations, multi-touch capabilities, multi-tasking, faster performance, and much more to the Android game app development repertoire. Multi-touch code gives these games and their players dynamic input and exchange ability, for a more realistic arcade game experience. Faster and better performance offers game players a more seamless, fun arcade experience like never before on Android. There is also improved native C/C++ integration with Android’s NDK as well, which makes coding, compiling, and converting both productive and efficient with gains in app performance. With actionable real-world source, Advanced Android 4 Games shows you how to build more sophisticated and addictive Android games, harnessing the power of these recent advancements. * Coverage of the new UI, UX, multi-touch and multi-tasking features available with Android 4.0. * Learn other techniques for improving the game playing experience including Wi-Fi tethering, better multi-tasking, new and better streaming Web video using WebM, and more. * By combining the elegant object-oriented features of Java and the raw power of C, there is no limit to the types of games that you can build for the platform, such as the “Quake 3D”-like game app case study in this book. You’ll definitely have fun, and perhaps you’ll even make some money. Enjoy! What you’ll learn * Key advanced Android gaming techniques using the new Android SDK 4 to help you earn more money in the app stores * How to compile native code (C) in Android using the NDK * How to add and integrate multi-touch * How to use Bluetooth controllers (Zeemote) * More gaming tricks and tips, such as hybrid 3D graphics with OpenGL and JNI * How to port and augment a 2D shooter game app similar to “Wolfenstein” for Android * How to port and augment another 2D shooter “Doom”-like game app for Android using OpenGL * How to build a 3D shooter game like “Quake” * How and where to best deploy these game apps Who this book is for This book is for savvy Android app developers who are looking for professional or advanced techniques for porting, augmenting and building 2D and 3D game apps that are complex, fun and lucrative. Table of Contents 1. Welcome to Android Gaming 2. Gaming Tricks: 3. More Gaming Tricks: Hybrid 3D Graphics with OpenGL and JNI 4. 2D Shooters: Wolfenstein-like App for Android 5. 2D Shooters with OpenGL: Doom-like App for Android 6. 3D Shooters Part I: Quake-like App 7. 3D Shooters Part II: Quake II 8. Appendix: Deployment and Compilation Tips
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值