电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

二D赛车游戏的设计与实现

二D赛车游戏的设计与实现_第1页
二D赛车游戏的设计与实现_第2页
二D赛车游戏的设计与实现_第3页
2D 赛车游戏的设计与实现摘 要随着电脑的普及,游戏已成为大多数年青人的主要休闲方式,赛车价格比较昂贵,而赛车游戏则可以让那些想玩赛车却没法玩的人体验一把。爱好赛车竞速游戏的玩家们以体验竞赛中的刺激为乐趣,玩家唯一的真实目的就是“最快”。本设计所实现的赛车游戏是基于 C 语言设计开发的,所选用的游戏引擎是基于Directx8.0 编写的。能进行赛车、赛道以及各种图片的绘制,实现各种游戏音效,猎取键盘输入,单人游戏时,可与电脑控制的赛车竞速,多人游戏时可与其他玩家或电脑AI 竞速。与其他类似游戏相比,本设计所采纳的碰撞检测算法,像边界矩形盒算法和颜色识别算法,不仅速度快,而且检测灵敏。多人游戏的实现是靠 socket 网络编程与多线程的联用,socket 提供 C/S 模式下数据的可靠传输,多线程解决了 socket 等待问题,两者结合使得在局域网内的多人游戏运行比较流畅.关键词:2D,DirectX,赛车,游戏Design and Implementation of 2D Racing GameAbstractWith the popularity of computer games has become a major leisure activity for most young people , cars are expensive , and racing games for those who want to play can play racing who had no opportunity to experience one. Hobby car racing game players to experience the game for fun stimulation , players only real purpose is the ” fastest ."This design is realized racing game based on the C language design and development , the choice of the game engine is based on Directx8 。0 written 。 Capable of racing, track and draw various pictures , sound effects to achieve a variety of games to get keyboard input, single— player game, with computer—controlled car racing , multiplayer games with other players or computer AI racing 。Compared with other similar games , collision detection algorithms used in the design , like the bounding rectangle box algorithm and color recognition algorithm , not only fast , but also detection sensitivity 。 Multiplayer is achieved by the socket network ...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

范哲铺+ 关注
实名认证
内容提供者

想你所想,急你所急,你需要的都在店铺里可以找到。

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部