摘要计算机游戏作为一种新兴的娱乐方式,已经融入到了人们的生活之中。
近年来,游戏产业己经成为经济市场中增长速度最快的热点,是众所关注的焦点。
Unity3D作为一款能跨平台的,界面友好,操作简单的工具,是一个全面整合的专业游戏引擎。
本文研究了第一人称射击游戏,即通常所说的FPS游戏。
本文基于Unity3D 引擎,使用Microsoft Visual Studio编写脚本,使用3dmax和Photoshop进行图形和建模处理工作。
通过操作模拟角色达成各种动作,完成游戏。
程序中有主菜单、暂停菜单和游戏结束菜单,能够选择重新开始游戏和退出游戏等操作。
在环境上展示了天空到陆地,森林草地到海面。
角色能够完成跳跃,行走,切换武器等基本动作,射击敌人会增加积分,拾取的物体和角色状态能显示在GUI界面上。
游戏中的敌人会自动生成并追踪玩家,在一定距离内会攻击玩家,被击败后会掉落弹药。
若玩家被敌人击败,则结束游戏并切换到游戏结束菜单。
关键词:Unity3d;Visual Studio;3dmax;Photoshop;FPS游戏ABSTRACTAs a new form of entertainment, computer games have been integrated into our lives. In recent years, the game industry has become the fastest growing hot spot in the economic market, is the focus of attention.Unity3d as a cross-platform, user-friendly, easy to operate tool, is a comprehensive integrated professional game engine.This article studies the first-person shooter game, which is commonly said FPS game. This article is based on the Unity3d engine, using Microsoft Visual Studio scripting, using the 3dmax and Photoshop the works with graphics and modeling. Through the operation of the simulation role to achieve a variety of actions to complete the game. The program has main menu, pause menu and Game End menu, can choose to restart the game and quit the game and so on. The environment shows the sky to the land, the forest meadows to the sea. The characters can jump, walk, switch weapons and other basic movements, shooting enemies will add points, pickup objects and role status can be displayed in the GUI interface. The enemy in the game will automatically generate and track the player, at a certain distance will attack the player, defeated will drop ammunition. If the player is defeated by the enemy, end the game and switch to the game end menu.Keywords: Unity3d; Visual Studio; 3dmax; Photoshop; FPS games目录1 绪论 (1)1.1 选题背景和意义 (1)1.1.1 选题的背景 (1)1.1.2 论文的研究意义 (1)1.2 第一人称射击游戏的国内外发展现状 (2)1.3 本文研究的主要目的与内容 (2)1.4 本章小结 (3)2 开发环境及主要开发工具简介 (4)2.1 Unity 3D (4)2.1.1 事件函数、脚本执行顺序和生命周期 (5)2.1.2 常用API (5)2.1.3 材质、灯光和着色器 (6)2.2 3DMAX (7)2.3 Visual Studio (8)2.4 Photoshop (8)2.5 本章小结 (9)3游戏策划 (10)3.1 游戏简介 (10)3.2游戏元素设计 (11)3.3游戏角色设计 (11)3.4游戏敌人设计 (12)3.6 本章小结 (17)4 游戏功能模块 (18)4.1 GUI模块 (18)4.1.1 主界面菜单 (18)4.1.2 游戏场景内GUI的显示 (20)4.1.4 游戏结束菜单 (23)4.2角色模块 (24)4.2.1 主角模块 (24)4.2.2 敌人模块 (26)4.3弹药模块 (28)4.3.1 弹药和弹药箱模型 (28)4.3.2 弹药安装 (30)4.4 武器模块 (31)4.4.1 武器开火实现 (31)4.4.2 武器动画实现 (32)4.4.3 瞄准缩放效果的实现 (33)4.5 本章小结 (34)5游戏测试 (35)5.1 游戏测试环境 (35)5.2主要功能实现测试 (35)5.3 测试意义 (37)6总结 (38)参考文献 (39)致谢 (40)1 绪论1.1 选题背景和意义1.1.1 选题的背景2017年,中国的游戏行业整体营业收入大约为2189.6 亿元,同比增长了23.1%。