郑伯林 發表於 2019-9-6 21:09:00

Android系统开发实务实训

<hr><hr>
<p>实训项目 :<span style="text-decoration: underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Android系统开发实务实训&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 项目成品名称:<span style="text-decoration: underline">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;绝地坦克&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>项目源码获取:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p><strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: rgba(0, 128, 0, 1)"><span style="color: rgba(0, 128, 0, 1)">https://pan.baidu.com/s/1uHwmhxDDm90napWOBL7Lbw</span>&nbsp; &nbsp;提取码:az55</span></strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 《绝地坦克》是一款坦克大战类型的javascript网络游戏,本游戏项目运行说明可分为三个方向:说明运行的项目是什么、如何运行,以及运行该项目的结果和意义是什么?其中运行的是什么包括:项目说明与功能分析;如何运行主要是指,该项目程序的实现原理和运行方式。具体说明如下:</p>
<p>&nbsp;</p>
<p>一、项目说明与功能分析</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首先从逻辑上而言,本项目由三大部分组成,分别是:游戏介绍与说明、在线游戏,以及游戏结束。如图1-1项目工程目录所示,index.html为导航页、start.html为资源加载页、tankgame.html(游戏界面),以及demo.html(游戏结束页面)。导航和资源加载页属于游戏介绍与说明部分。</p>
<p><strong><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906210954351-1855388686.png" alt=""></strong></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;如图1-1 项目工程目录</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 而整个项目的核心,就是游戏界面部分。如图1-2所示,按对象可细致分为:墙、坦克、飞机和子弹... ...等等。</p>
<p><strong><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211123368-167873416.png" alt=""></strong></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图1-2游戏对象与方法</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>二、实现原理和运行方式</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如图2-1所示,为本工程项目的逻辑继承图。其中,血条类对象继承父类Base,与此同时,Blood_strip分别被飞机(Plane)、墙块(Wall)、坦克(Tank)和指挥官妹妹(Command)所继承,这些便是整个项目游戏的核心对象关系。</p>
<p><strong>&nbsp;<img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211207756-98834345.png" alt=""></strong></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图2-1 逻辑继承图</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当然,项目还存在着其它的对象以及对象间关系,此处不再详述。项目的运行方式,可以直接在资源管理器中用浏览器打开index.html ,也可以选择将本项目发布到服务器中。在整个项目开发设计时,所涉及到的环境,以及运行注意事项可参详游戏简介与说明。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>三、运行效果和体验</p>
<p>1)、游戏介绍与说明</p>
<p>&nbsp;&nbsp;&nbsp; 当运行本项目时,刚进入首页便能听到悦耳的背景音乐,以及看到极具吸引力的简洁画风界面。如图3-1所示,只要一点击“现在,开启绝地坦克之旅!” ,就会弹出四步的游戏简介和</p>
<p><strong><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211339365-1718537406.png" alt=""></strong></p>
<p>&nbsp;</p>
<p>&nbsp;<img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211412029-1332942139.png" alt="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-1 首页与游戏介绍</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当游戏玩家,完成了游戏介绍之后,便会自动进入游戏资源的加载模式。此处加载模式,为特效模拟界面。经过短短几秒的‘资源加载’之后,界面将会进入正式的游戏模式。</p>
<p>2)、在线游戏</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如图3-2所示,当正式开始游戏时,界面的左边将会为玩家列举出相应的游戏操作方式,如:按“w”键即为坦克向前行走。当玩家击败一辆敌方坦克时,将获得100积分。当然,如果不小心被敌方坦克或者飞机的炮弹击中,自己的血量将会被扣除相应的比例。</p>
<p><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211455612-2115164693.png" alt=""></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-2 游戏未开始界面</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; 本游戏的规则就是,需要在保护好指挥官MM的前提下,击败所有的坦克并且相应的积分。获胜的方式,即为消灭所有的敌方坦克。当然,如果玩家积分足够大并溢出系统估量值时,也可以被判为获胜,但是这种希望并不大。</p>
<p>3)、游戏结束</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 当玩家三次复活机会用完,或者在倒计时结束前未能及时复活我方坦克时,将会被系统判定淘汰并自动结束游戏。如图3-3和3-4所示,玩家可以在游戏结束之后,重新选择“回到首页”,或者继续从新开始游戏。</p>
<p><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211542139-1165696999.png" alt=""></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 图3-3 游戏淘汰</p>
<p>&nbsp;</p>
<p><img style="display: block; margin-left: auto; margin-right: auto" src="https://img2018.cnblogs.com/blog/1669870/201909/1669870-20190906211634351-1864608500.png" alt=""></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;图3-4 游戏结束</p>

</div>
<div id="MySignature" role="contentinfo">
    <br>
<br>
<div>作者:Raodi   饶 弟</div> <div>出处:http://www.cnblogs.com/Raodi/</div> <div>本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。 </div>
<br><br><br>
来源:https://www.cnblogs.com/Raodi/p/11478275.html
頁: [1]
查看完整版本: Android系统开发实务实训