Skip to content

Megacity-Metro: a thrilling shooter game, using Netcode for Entities for a multiplayer experience supporting 128+ players. Latest DOTS packages and Unity Gaming Services elevate the user experience, demonstrating how to craft engaging multiplayer games.

License

Unity-Technologies/megacity-metro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Megacity-Metro

Contents and Quick Links

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 128+ 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)
  • 128+ 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)
  • Cross-platform support for Windows, Mac and Android

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 set Debug if 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:

  1. 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.
  2. To add the project to the Unity Hub, click the Add button and select the root folder of the cloned project.
  3. Open the Menu scene located in Assets/Scenes/Menu.
  4. Click the Play button to start.
  5. 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.

About

Megacity-Metro: a thrilling shooter game, using Netcode for Entities for a multiplayer experience supporting 128+ players. Latest DOTS packages and Unity Gaming Services elevate the user experience, demonstrating how to craft engaging multiplayer games.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published