Mirror/doc/Examples/index.md

16 lines
2.1 KiB
Markdown
Raw Normal View History

# Samples Overview
Mirror includes several small examples to help you learn how to use various features and how to set things up so they work together.
2019-10-04 08:21:02 +00:00
- [Basic](Basic/index.md)
2019-07-20 22:14:08 +00:00
Basic is what it sounds like...the most rudimentary baseline of a networked game. Features SyncVars updating random UI data for each player.
2019-10-04 08:21:02 +00:00
- [Tanks](Tanks/index.md)
This is a simple scene with animated tanks, networked rigidbody projectiles, and NavMesh movement
2019-10-04 08:21:02 +00:00
- [Pong](Pong/index.md)
A simple example for "How to build a multiplayer game with Mirror" is Pong. It illustrates the usage of `NetworkManager`, `NetworkManagerHUD`, NetworkBehaviour, NetworkIdentity, `NetworkTransform`, `NetworkStartPosition`and various Attributes.
2019-10-04 08:21:02 +00:00
- [Additive Scenes](AdditiveScenes/index.md)
2019-07-20 22:14:08 +00:00
The Additive Scenes example demonstrates a server additively loading a sub-scene into a main scene at startup, and having a server-only trigger that generates a message to any client whose player enters the trigger zone to also load the sub-scene, and subsequently unload it when they leave the trigger zone. Only players inside the trigger zone can see the objects in the sub-scene. Network Proximity Checker components are key to making this scenario work.
2020-05-03 16:14:48 +00:00
- [Multiple Concurrent Additive Scenes](MultipleAdditiveScenes/index.md)
2020-07-03 22:19:06 +00:00
The Multiple Concurrent Additive Scenes example demonstrates a server additively loading multiple instances of a sub-scene into a main scene at startup, with physics separation, and assigning players to the instances to play matches independently. [NetworkSceneChecker](../Components/NetworkSceneChecker.md) is the key component that makes this example work.
2019-10-04 08:21:02 +00:00
- [Room System](Room/index.md)
The Room System example demonstrates how to set up a "staging" scene where players assemble before starting a match. When all players are ready, the server sends them all a message to change scenes (along with the server itself) to the actual game play scene so they all come in at once. Includes fully playable game with a character controller where players collect server-spawned prizes for score.