中文题目:基于Symbian OS的游戏设计与实现
外文题目:Design and Implement of Tetris Game on Symbian OS
毕业设计(论文)共57页(其中:外文文献及译文14页) 图纸共 0 张
完成日期2010年6月 答辩日期2010年6月
摘要
Symbian操作系统是一种32位占先式多任务嵌入式操作系统,具有功耗低,内存占用少等特点,非常适合手机等移动设备使用。而与微软产品不同的是,Symbian将移动设备的通用技术,也就是系统的内核,与图形用户界面技术分开,这就使得它能很好的适应不同输入方式的平台,这也是我们能见到不同界面的Symbian系统的主要原因。围绕着Symbian OS开发和生产的一系列软硬件产品,在全球掌上电脑和智能手机市场上占据了大部分的份额。所以为Symbian OS进行软件的开发对于拓宽眼界,接触嵌入式开发是极有裨益的。而随着游戏产业的蓬勃发展,以游戏开发对Symbian OS程序设计进行实践可以说既能达到研究Symbian的目的,又能学习的过程中减少枯燥无趣的部分。所以本次毕设选择了世界范围内最普遍流行,也是出现时间最长之一的游戏--俄罗斯方块进行。
关键词:Symbian OS;游戏;俄罗斯方块
Abstract
Symbian OS is a preemptive multi-task embedded operation system which is low-powered and uses less memory than other OS, fits for cell phones and other mobile devices. To be different with product of Microsoft, Symbian separates the general techniques of devices, that is, system core with GUI ones, therefore it could adapt various platforms with different inputting style, so that's why we could see so many Symbian systems with dissimilitude interfaces.Software and hardware products that are relative to Symbian OS programming has been seized plenty of market on Pocket PC and intelligent cell phone in global scale. Therefore it's very useful to program on Symbian OS to extend eyesight and learn embedded programming.And with the rapid development of game industry, practice in Symbian OS programming with game development is not only good for studying on Symbian OS, but also reduce the uninteresting part. So the Tetris game is chosen as the application that willing to be implemented in this graduation design.
Key words: Symbian OS;Game;Tetris
目录
1 项目概述 1
1.1 SYMBIAN OS系统的概述 1
1.2 SYMBIAN OS存在的问题及薄弱环节分析 1
2 需求分析 3
2.1 总体目标 3
2.2 具体目标 3
2.3 系统功能建模 4
2.3.1 系统数据流程图 4
2.3.2 数据描述 6
3 概要设计 8
3.1 体系结构设计 8
3.2 接口设计 8
3.2.1 外部接口 8
3.2.2 内部接口 9
3.3 运行设计 9
3.3.1 运行环境 9
3.3.2 运行模块的组合 9
3.3.3 运行控制 9
3.3.4 运行时间 9
4 详细设计 10
4.1 SYMBIAN OS系统框架 10
4.2 程序框架 11
4.3 游戏实体 12
4.3.1 TGrid 类 12
4.3.2 TBlock 类 13
4.4 界面组件 15
4.4.1 CrectangleMainView 类 16
4.4.2 CrectangleMainContainer 类 17
4.4.3 CrectangleScoreView 类 18
4.4.4 CrectangleScoreContainer类 18
4.5 图形图像组件 19
4.6 游戏资源 19
4.6.1 Symbian OS中资源的定义 19
4.6.2 ID资源(Rectangle.hrh) 20
4.6.3 资源文件(Rectangle.rss) 20
4.7 引擎对象(活动对象) 21
4.7.1 活动对象 21
4.7.2 CrectangleEngine 类 22
4.8 程序逻辑 24
5 编码 26
5.1 概述开发工具 26
5.1.1 S60 3RD EDITION SDK简介 26
5.1.2 CARBIDE.C++ 简介 26
5.2 代码规范和命名惯例 27
5.2.1类 28
5.2.2 变量 28
5.2.3 函数 29
5.3 SYMBIAN 开发的注意事项 29
5.3.1 游戏中断处理 29
5.3.2 游戏无操作处理 29
5.3.3 移植性考虑 29
5.3.4 内存制约 29
5.3.5 游戏结构 30
5.3.6 其它注意事项 30
6 测试 32
6.1 测试原则及测试