![](Documentation/Images/Banner.png)
# FPS Sample
Thanks for checking out our project!
This is a fully functional, first person multiplayer shooter game made in
Unity and with full source and assets. It is in active development by a small
team from Unity Technologies. Our goals are to test and showcase new
features in Unity and to be of use for teams who can bootstrap on top of
this, extract useful bits and tools or simply learn from and get inspired by
what is in the project.
Visit our [landing page](https://unity.com/fps-sample) for more high
level information about the project. Or reach out [in the forum](https://forum.unity.com/forums/fps-sample-game.184).
The project is using a number of new technologies: We use the new [HD Render
Pipeline](https://github.com/Unity-Technologies/ScriptableRenderPipeline), meaning
all content has been authored for HDRP. We are also using the new
[network transport layer](https://github.com/Unity-Technologies/multiplayer) as well as the [Entity-Component System](https://unity3d.com/unity/features/job-system-ECS).
In the case of ECS, we have primarily adopted the "ECS-pattern" and use it in
hybrid mode with a lot of regular components. As more and more features of
Unity become available in ECS-aware versions, we will migrate to them.
## Status and prerequisites
Current status at a glance:
```
Unity version: 2018.3 beta 12
Platforms : Windows (client and server) and Linux (server only)
```
## Getting the project
To get the project folder you need to clone the project.
Note, that
> __IMPORTANT__:
> This project uses Git Large Files Support (LFS). Downloading a zip file using the green button on Github
> **will not work**. You must clone the project with a version of git that has LFS.
> You can download Git LFS here: https://git-lfs.github.com/.
The project size is about 18GB (size of Assets folder). Your cloned repository
will be almost double of that due to git state. If it is much smaller,
you most likely did not have LFS when you cloned.
## Getting the right version of Unity
Once you have cloned the repository, you should install
the version of Unity that is listed above in the prerequisites section. Make
sure you include windows standalone support in your installation.
## Opening the project for the first time
The following guide should take you to the point where
you can hit play in the editor and run around the levels and also build a
standalone version of the game and use it to spin up a server and connect a
few clients to it.
The first time you open the project you need patience! It takes a while
to import all the assets.
> __NOTE__: Due to a bug in Unity 2018.3 beta, you have to take
the following steps right after the initial import:
> 1. Search for `t:model` in the Project search field. Select them all, right click and reimport them.
> 2. Search for `Firstperson_Projection` in the Project search field. Select the 4 shaders, right click and reimport them.
>
> One day soon we will remove this note and there will be cake.
Once the editor is ready, open the _Project Tools Window_ by
navigating to ___FPS Sample > Windows > Project tools___.
It should look like this:
![](Documentation/Images/ProjectTools.png)
Keep this window docked as you will use it a lot. From here you can open the
levels, build assetbundles and build standalone players. Because this is a
multiplayer game you will need to work with standalone players a lot.
### Trying out preview mode
From the Project Tools window click __Open__ next to Level_00. Our levels are
split into multiple scenes but using these buttons will ensure you open all the scenes
that make up a level.
Once opened, try entering playmode in the editor. You should now
be able to run around in the level. This is what we call 'preview mode'. Here
you can move around and test your level, player traversal and weapons.
### Building bundles and standalone
Leave playmode again and in the Project Tools window, verify that
it says "Building for: StandaloneWindows64..." under the Game headline.
If it does not, change your platform in the usual way, using File > Build
settings window.
Now, in the Project Tools window in the bundles section, press __All \[force\]__.
This will build the levels and other assets into assetbundles. The first time
around this will take a significant amount of time as all shaders have to be
compiled.
Once you have built the bundles, hit __Build game__ in the game section.
This builds the standalone player. Again, first time will be slow.
> __NOTE__: Due to a limitation in Unity 2018.3, you have to look out for errors like this `Maximum number (256) of shader keywords exceeded, keyword <KEYWORD_NAME> will be ignored.` and similar. If you get these, you can close and open Unity and then try and build again. The errors are relatively harmless but can lead to graphical artifacts as some shaders will have wrong keywords.
### Using the quick start launcher
When this is done, locate the "Quick start" section at the bottom of the
Project Tools window. Fill out the settings like this:
> Mode: __Multiplayer__\
> Level: __Level_00__\
> Clients: __1__\
> Headless: __Checked__\
> Use editor: __Unused__
Now hit the green __Start__ button. This should launch two processes: one is
a standalone, headless server, the other is a client that will attempt to
connect to the server.
Congratulations! If you made it this far you should celebrate a bit!
## Development of FPS Sample, Contributions etc.
As of today, internally development of the project happens on Perforce. We
push versions of the project to github from there. As we do that we will update
the [CHANGELOG](CHANGELOG.md) with highlights but the full history is not
carried over.
For practical reasons we are not able to take larger contributions
just now. But bugfixes are very welcome! Read the guidelines for
contributing in [CONTRIBUTING](CONTRIBUTING.md).
## More information
Check out the [Documentation](Documentation/) folder for more information. In particular, the [Getting Started Guide](Documentation/GettingStarted.md) is a good place to, well, start.
## License
Our intention is that you can use everything in this project as a starting
point or as bits and pieces in your own Unity games. For the legal words, see
[LICENSE.md](LICENSE.md).
没有合适的资源?快使用搜索试试~ 我知道了~
(2018-2019)FPS游戏unity源码FPSSample-master.zip
共2000个文件
meta:6830个
cs:1475个
tif:986个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 188 浏览量
2022-10-29
19:56:52
上传
评论
收藏 239.02MB ZIP 举报
温馨提示
(2018-2019)FPS游戏unity源码FPSSample-master.zip
资源推荐
资源详情
资源评论
收起资源包目录
(2018-2019)FPS游戏unity源码FPSSample-master.zip (2000个子文件)
DamageVignetteAnim.anim 8KB
VFX_Anim_Muzzle_Flash_Light_A.anim 3KB
Unity.RenderPipelines.HighDefinition.Editor.asmdef 614B
Unity.RenderPipelines.HighDefinition.Runtime.asmdef 417B
Unity.RenderPipelines.Core.Editor.asmdef 388B
Unity.Postprocessing.Editor.asmdef 377B
Unity.Networking.Transport.EditorTests.asmdef 351B
Unity.AssetBundleBrowser.Editor.Tests.asmdef 265B
Unity.ShaderGraph.Editor.asmdef 207B
Unity.Networking.Transport.asmdef 188B
Unity.RenderPipelines.Core.Runtime.asmdef 172B
Unity.Postprocessing.Runtime.asmdef 160B
Unity.AssetBundleBrowser.Editor.asmdef 155B
ProjectSettings.asset 20KB
InputManager.asset 11KB
PostProcessResources.asset 8KB
HDRenderPipelineResources.asset 6KB
Default Diffusion Profile Settings.asset 6KB
QualitySettings.asset 4KB
HDRenderPipelineAsset.asset 3KB
GraphicsSettings.asset 2KB
Physics2DSettings.asset 2KB
FbxExportSettings.asset 1KB
DynamicsManager.asset 1KB
NavMeshAreas.asset 884B
UnityConnectSettings.asset 853B
EditorSettings.asset 772B
TagManager.asset 562B
VFXManager.asset 520B
DefaultAmbientOcclusionSettings.asset 494B
AudioManager.asset 376B
EditorBuildSettings.asset 352B
TimeManager.asset 202B
NetworkManager.asset 151B
New Terrain.asset 134B
OcclusionCullingData.asset 133B
LightingData.asset 133B
OcclusionCullingData.asset 133B
New Terrain.asset 133B
Terrain_x1_y0_TerrainData.asset 133B
Terrain_x0_y0_TerrainData.asset 133B
Terrain_x0_y1_TerrainData.asset 133B
Terrain_x1_y1_TerrainData.asset 133B
LightingData.asset 132B
OcclusionCullingData.asset 132B
OcclusionCullingData.asset 132B
LiberationSans SDF.asset 132B
LightingData.asset 132B
New Terrain 1.asset 132B
TerrainSourceB.asset 132B
Heightmap_Test_Object_A_Terrain_EXR.asset 132B
Heightmap_Test_Object_A_Terrain_RAW.asset 132B
Roboto-Light SDF DropShadow.asset 131B
Roboto-Regular SDF DropShadow.asset 131B
Roboto-Thin SDF.asset 131B
Roboto-Black SDF.asset 131B
RobotoMono-Medium SDF.asset 131B
LightingData.asset 131B
LightingData.asset 131B
TerrainSourceA.asset 131B
PEE_PP_Profile 1.asset 130B
PEE_PP_Profile.asset 130B
Level_Menu_Default_Profile.asset 130B
SceneCam_Profile_Custom.asset 130B
SceneCam_Profile_Level01_Default.asset 130B
SceneCam_Profile_Default.asset 130B
SceneCam_Profile_GammaGlobal.asset 130B
Level_01_Volume_00.asset 130B
Level_00_Scene_Cam_Profile_A.asset 130B
Terrain_Test_A_Profile.asset 130B
ReplicatedEntityRegistry.asset 129B
Terraformer_3P_FootStep.asset 129B
Terraformer_3P_Land.asset 129B
Robot_A_1P_FootStep_Left.asset 129B
Robot_1P_Land.asset 129B
Robot_A_1P_FootStep_Right.asset 129B
Robot_A_3P_FootStep.asset 129B
Terraformer_1P_JumpStart.asset 129B
Terraformer_3P_JumpStart.asset 129B
Terraformer_1P_FootStep_Right.asset 129B
Terraformer_1P_FootStep_Left.asset 129B
PEE_Sky.asset 129B
PEE_BakingSky.asset 129B
Post-process Volume Profile.asset 129B
TestLevel_ProceduralSkySettings.asset 129B
Scene Settings Profile.asset 129B
Level_Menu_Volume_00_BakingSky.asset 129B
Level_Menu_Volume_00.asset 129B
Scene Settings Profile.asset 129B
SceneCam Profile 1.asset 129B
Level_01_Volume_00_BakingSky.asset 129B
Scene Settings Profile 1.asset 129B
Scene Settings Profile.asset 129B
InAirRun.asset 129B
AnimStateSelector.asset 129B
Run.asset 129B
Stand.asset 129B
InAirRun.asset 129B
AnimStateSelector.asset 129B
Run.asset 129B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
reg183
- 粉丝: 1818
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功