This page has been translated automatically.
UNIGINE 基础课程
1. 简介
2. 虚拟世界管理
3. 3D模型准备
4. 材质
5. 摄像机和光照系统
6. 实现应用程序逻辑
7. 制作过场动画与动画序列
8. 准备发布项目
9. 物理系统
10. 优化基础
12. 项目3:第三人称越野街机赛车游戏。简介
13. 项目4:带有简单交互的 VR 应用程序

项目2:第一人称射击游戏 简介

This project will let you learn how to create a simple FPS (First-Person Shooter) game.本项目将带你学习如何创建一个简单的FPS(第一人称射击)游戏。

Using the C++ Component System and the first-person controller template we will create an animated character armed with a gun and controlled by the player. The aim of the character is to survive and kill all enemy robots spawned at the level. We will also learn how to use Particle Systems to create visual effects and manage animations via code.我们将使用C++组件系统和第一人称控制器模板,创建一个由玩家控制的持枪动画角色。该角色的目标是在关卡中生存并消灭所有生成的敌方机器人。我们还将学习如何使用粒子系统创建视觉效果,以及通过代码管理动画。

Creating a New Project Using a Template World
使用模板世界创建新项目#

While working on this project, we will use a set of ready-made assets included in the add-on, which we downloaded in Section 6.2.在开发本项目时,我们将使用在6.2节下载的附加组件中包含的一组现成资源。

  1. Create a new empty C++ project. Open the SDK Browser, go to the My Projects tab, and click Create New.创建一个新的空C++项目。打开SDK浏览器,转到My Projects(我的项目)选项卡,点击Create New(创建新项目)。
  2. In the window that opens, be sure to select C++ (Visual Studio 2015+) from the API + IDE list and click Create New Project.在打开的窗口中,确保从API + IDE列表中选择C++ (Visual Studio 2015+),然后点击Create New Project(创建新项目)。
  3. Once the new project is created, it will appear on the My Projects tab. Click Open Editor under the created project to open it in UnigineEditor.新项目创建完成后,将显示在My Projects(我的项目)选项卡中。点击已创建项目下方的Open Editor(打开编辑器),在UnigineEditor中打开它。
  4. Once UnigineEditor is launched, a template world will open where we will start working.启动UnigineEditor后,将打开一个模板世界,我们将在此开始工作。

    Select and delete the material_ball node as we won't need it.选中并删除material_ball节点,因为它对我们没有用处。

  5. Open the folder with the downloaded UNIGINE Course Projects add-on (we did it in Section 6.2).打开下载的UNIGINE课程项目附加组件的文件夹(我们在6.2节已完成此操作)。
  6. Drag the UPACKAGE file of the add-on to the data/ folder in the Asset Browser window.将附加组件的 UPACKAGE文件拖到资源浏览器窗口中的data/文件夹。
  7. In the Package Manager window, select the data/fps folder, click Import Package and wait for the import process to complete.在包管理器窗口中,选择data/fps文件夹,点击Import Package(导入包)并等待导入过程完成。

本節中的文章

本页面上的信息适用于 UNIGINE 2.20 SDK.

最新更新: 2025-06-20
Build: ()