unity多人联机插件_Mirror ---Unity多人联机游戏API(一)

8cb22a131a86133fb69f8c92f1facf57.png

Mirror是Unity 商店的资源:

https://assetstore.unity.com/packages/tools/network/mirror-129321

Mirror是 high level Networking API,建立在 low level  的Telepathy库之上。

Mirror是uMMORPG、vival和Cubica的开发人员为MMO规模的网络而构建和测试的。Mirror使联网变得容易,简洁和可维护。使用少于6000行代码即可实现uMMORPG。我们只需要一个网络库来启动我们的游戏就可以了。

体系结构:

使用Mirror,服务器和客户端是一个项目(因此得名)。我们不再为服务器和客户端分别使用一个代码库,而是为它们使用相同的代码。

* [Server] / [Client]标记可用于仅服务器和仅客户机的部分

* [Command]用于客户机->服务器通信

* [ClientRpc] / [TargetRpc]用于服务器->客户机通信

* [SyncVar]和SyncList用于自动同步状态。

Low Level Transports:

* Telepathy: TCP

* UNET LLAPI: UDP

* Ninja.Websockets: Websockets

* FizzySteamMirror: Steam P2P

* Apathy: Native TCP

* Ignorance: ENET UDP

* LiteNetLib4Mirror: LiteNetLib UDP

下面是使用Mirror做的多人联网游戏964b35aadc407010624b36fb4d216830.png

https://youtu.be/d-X-61dxDNs

http://www.populationonevr.com/  POPULATION: ONE – Battle Royale in Virtual Reality90145737bf7b8671fe116a3bec69f3bd.png

https://youtu.be/TgRHMmCfWHA

https://store.steampowered.com/app/719200/The_Wall/   The Wall – Multiplayer FPS with a giant Wall382c9120001df7f8581e050d8c1d4e75.png

https://youtu.be/6FAHm9yzx68

https://store.steampowered.com/app/700330/SCP_Secret_Laboratory/   SCP: Secret Laboratory – Multiplayer horror, based on SCP – Containment Breacha65261341e5d9ffbfb88f648497883a5.png

https://youtu.be/D0sZ6-Z0_go

https://www.ostrofa.com/    Ostrofa – Low Poly Island Survival

bfb1f06e02297286d93805e27fc14112.png

https://youtu.be/rbLjNZcl4zs

http://samutale.com/   SamuTale – Open World Sandbox Survival MMO7b04c673db2fb6c897ebec4763c84dc6.png

https://youtu.be/D_f_MntrLVE

http://cubica.net/   Cubica – The multiplayer version of Blockstory

0c7fdd816a09bd57ca7dcef0ebd4a5dc.png

https://youtu.be/IlJ2O5n1G2g

https://polyorbit.studio/exoly.html    Exoly – Space Adventure Game

e566ff87f24a4eca777c6190f98020ae.png

https://youtu.be/iYVTgU6_ToM

https://store.steampowered.com/app/535630/    One More Night – Top-Down Survival Game8da77cc4e784faa5c20a008cf712e1ea.png

https://youtu.be/IgRvpq_S4bY

https://nestables.co/    Nestables – a Relaxing Game about Cubese698d61c44a1d279ae4613f478c2183b.png

https://youtu.be/wx3AuXB5rgg

https://naicaonline.com/   Naïca Online – 2D Adventure MMORPG

更多游戏视频请看下期..............................


版权声明:本文为weixin_42298039原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。