Unity-Technologies/megacity-metro
关于
Megacity-Metro:一款紧张刺激的射击游戏,使用 Netcode for Entities 打造支持 128 名以上玩家的多人游戏体验。通过最新的 DOTS 软件包和 Unity Gaming Services 提升用户体验,展示如何打造引人入胜的多人游戏。
游戏与模拟器实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- +4
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Contents and Quick Links
- Megacity Metro Overview
- Megacity Metro Prerequisites
- Multiplayer Setup
- Add Unity Gaming Services (UGS)
- Index of Resources in this Project
- Assemblies
- Netcode Atrributes
- Gameplay Controls
- Disclaimer
- License
Megacity Metro Overview
Megacity Metro is an action-packed, shooter game based on the original Megacity sample. It leverages the power of Netcode for Entities for an immersive, multiplayer experience that can support 150 players simultaneously. The latest DOTS packages and Unity Gaming Services (UGS) enhances the Megacity Metro user experience. Megacity Metro showcases how to create engaging and immersive multiplayer experiences with a suite of netcode and multiplayer tools, tech, and services.
Some important points of this demo are:
Large-scale streaming and rendering with the Entity Component System (ECS for Unity)
150 players per game session
Server-authoritative gameplay with feature prediction, interpolation, and lag compensation using Netcode for Entities
Unity Gaming Services (UGS) integration for Game Server Hosting, Matchmaking, and Vivox voice chat
Universal Render Pipeline (URP) and Entities Graphics for Rendering
Unity 6: New Rendering Features such as Render Graph and Spatial Temporal Anti-Aliasing (STP)
Cross-platform support for Windows, Mac, Android and iOS
* Integration through the Multiplayer Services SDK coming soon
Gameplay Controls
Mouse and Keyboard
| Input | Action |
|---|---|
| Mouse Movement / Arrow Keys | Steering |
| Left Click / Space | Shoot |
| W/S | Thrust / Reverse |
| A/D | Steering |
| E/Q | Roll |
| Tab | LeaderBoard |
| V | Toggle Vivox |
| P | Netcode Panel Stats |
| ESC | in game menu |
Contents and Quick Links
Getting Started
Important Note Before You Begin
The Megacity Metro sample is large, so the first time cloning and playing the sample may take more time than expected. Subsequent plays should load much quicker because of caching.
First time clone and load time estimates:
- Cloning the Megacity Metro repo: Up to 20 min
- Opening the project with library build: Up to 20 min
- Building the project for each platform for the first time: Up to 50 min.
Navigate to
Project Settings > Other Settings > Configuration > C++ Compiler Configurationand setDebugif you need to compile faster than optimal.
To get the Megacity Metro sample, you can clone the project using Git. Please note that direct download of the project is not currently supported for this repository.
Clone the Project
Before you can clone the project, you must install Git Large File Support (LFS). Megacity Metro uses Git LFS to handle all large assets required locally. Refer to Git LFS installation options for instructions on Windows and Mac.
Quick Start
After you clone the project, follow these steps to start playing:
- Install a compatible Unity Editor version; we highly recommend using the version specified in
ProjectSettings/ProjectVersion.txt. During installation, make sure to include Windows/Mac Build Support (IL2CPP), Windows/Mac Dedicated Server Build Support, Android/iOS Build Support (if you plan to build for mobile devices), and Linux Dedicated Server Build Support. - To add the project to the Unity Hub, click the Add button and select the root folder of the cloned project.
- Open the Menu scene located in
Assets/Scenes/Menu. - Click the Play button to start.
- Start the Single Player mode. Multiplayer requires more setup which will be explained next.
Disclaimer
This repository does not accept pull requests, GitHub review requests, or any other GitHub-hosted issue management requests.
License
Megacity Metro is licensed under the Unity Companion License. See LICENCE for more legal information.
探索相关项目
加载中…