星空之翼,星空之翼游戏的设计与实现

星空之翼游戏的设计与实现
摘要 本毕业设计开发的《星空之翼》是一款纵版飞行射击类游戏。游戏采用组件式架构。整个游戏由主程序模块、游戏引擎模块、地图编辑器模块和声音引擎模块4个相对独立的模块组成,其中声音引擎采用的是一个开源声音引擎irrklang。本毕业设计用到的技术有多线程编程、嵌入式数据库(SQLite)编程和XML。
《星空之翼》游戏采用C#语言编写,设计时采用模块化的设计思想,模块间相对独立,耦合度小,便于今后的并行开发。实现时充分考虑了代码的重用性和功能的灵活性和可扩展性。玩家可以通过地图编辑器制作自己的关卡,自定义敌人和游戏背景;游戏的程序和游戏数据分离,使用户可以很方便的修改游戏素材;同时通过替换其中的游戏引擎模块就可以方便的实现游戏升级。
关键词 游戏引擎,模块化,多线程,XML,嵌入式数据库
The Design and Implementation of “Star Wings”
Abstract
"Star Wings" is a vertical version of flight shooting game. We design the project with component-based architecture. The project consists of four relative dependent modules: main program module, the game engine module, the map editor module and sound engine module. The sound engine here uses an open source sound engine, named irrklang. The technologies involved in our project include: multi-thread programming, embedded database (SQLite) programming and XML.
“Star Wings” is developed by C#. The whole project adopts modularizing design method, the modules are relative independent, coupling degree of the modules is relative low, it is feasible for parallel developing in the future. We full considered the code reusability and flexibility and expansibility of functions. Players can use map-editor to create custom levels, custom enemies and custom game background. The game logic separates from the data, by which players can change their favorite materials, like planes, without rewriting the codes. At the same time, game update can be done just by replacing the game engine module.
Keywords game engine, modularity, multi-thread, XML, embedded database
目录
第一章 概述
1.1 课题背景
1.2背景知识
1.2.1 游戏引擎
1.2.2 多线程
1.2.3 嵌入式数据库sqlite介绍
1.2.4 XML
1.2.5单例模式(singleton)
1.2.6 碰撞检测
1.2.7 游戏循环体
1.2.8静态类
1.3 毕设意义
第二章 游戏的总体分析与设计
2.1 设计构想
2.1.1 游戏定位
2.1.2 游戏需求
2.1.3 游戏扩展
2.2 模块划分
2.3 开发工具
第三章 游戏的详细设计
3.1 游戏引擎模块
3.2 地图编辑器模块
3.3 主程序模块
3.4 游戏主循环
3.5 碰撞检测
3.6 地图格式与精灵图片处理
3.7声音引擎
3.8 模块间的关系
结论
毕业设计总结
未来的工作
  1. 第一章 概述
    Tags:  游戏设计专业 设计小游戏 游戏设计 星空之翼txt 星空之翼

    延伸阅读

最新评论

发表评论