发现一个简单但是有意思的小游戏,玩法和HTC自带的那个滚球的游戏差不多。先看一下程序运行的效果:
整个程序结构非常简单,只有四个类,他们的关系如下所示:
整个界面都是通过View的onDraw画上去的,并没有使用布局控件,在AmazedView这个View类中基本上包含了所有的逻辑代码,能让整个游戏不断刷新,动起来的游戏引擎部分也在这里面,下面是从创建到运行的时序图:
其实整个游戏的引擎非常简单,就是onDraw——>gameTick——>(调用invalidate)——>onDraw形成一个循环
下面是程序的源代码下载地址:http://download.csdn.net/detail/gaomatrix/3699889
分享到:
相关推荐
Android Amazed 游戏 源码
Android完整游戏代码,想学习的进来下载吧。
Amazed开源项目工程,资源http://code.google.com/p/apps-for-android/
Amazed
•Amazed:一个简单但令人上瘾的加速度为基础的大理石指导游戏。 •AndroidGlobalTime:地球全表示,你可以不停地旋转。 •AnyCut:一种实用工具,可以让用户创建主屏幕快捷方式到系统中几乎任何东西。 •Clickin2...
语言:English 通过轻松查看产品的Reddit讨论来增强Amazon 显示有关Amazon产品的Reddit帖子。...程序加载按评论排序的Reddit链接,并显示每个帖子的subreddit和作者。 非常适合通过Reddit Posts获得有关产品的更多信息。
Amazed是用Java编写的图像编辑器。 它的主要功能是简单地查看和操作不同格式的图像,包括在目录中的图像之间轻松导航。 其他功能:调整大小,翻转,过滤,添加文本,打印,op
表情英语happy sad angry sleepy幼儿园PPT课件.pptx
Michael Jackson, 1958-2009: He Amazed the World With His Music and Dancing
Since I was amazed Android has a ScaleGestureDetector since API level 8 but (still) no such thing as a RotateGestureDetector I decided to create this class myself. In the process I decided to create...
Once you discover Project 2016 you'll be amazed at how efficient and effective the project management process can be. Written by an expert author who knows project management processes backward and ...
First-time developers are amazed at how quickly you can get a page-centric MVC web site up and running thanks to the scaffolding and convention over configuration that Grails provides. Advanced web ...
该模块会将process.title设置为您的应用程序名称(在package.json设置的名称)。 例子 index.js (你的应用主文件): require ( 'app-title' ) ( ) ; console . log ( 'process.title === %s' , process . title...
As you learn to take advantage of features like default immutability, pipelining, type inference, and pattern matching, you'll be amazed at how efficient and elegant your code can be.
I was amazed by the creativity and power brought about by the command line. I was working with concurrent programs. Then, there was a change of project and I was thrown headlong into writing code ...
would be amazed at how many different kinds of reviews a technical book by a traditional publisher goes through and how many people have their part in critiquing and revising it. From the technical ...
特征: 创建唯一值组生成给定范围内的唯一整数生成UUID1和UUID4值生成独特的单词组合(请考虑rustic-albatross或amazed-wallabies )入门要安装资源提供者的共享版本, ,然后键入以下命令: cdk --app ' npx @...