简体   繁体   English

适用于iOS和Android的Unity3D:多人游戏(蓝牙连接)

[英]Unity3D for iOS and Android: Multiplayer (Bluetooth Connection)

i'm looking for a way to connect two devices using Bluetooth in Unity iOS and Android Basic for Multiplayer-Gaming. 我正在寻找一种方法来在Unity iOS和Android Basic中使用蓝牙连接两个设备以进行多人游戏。 I found: 我发现:

  • AllJoyn by Qualcomm - Bluetooth works apparently only with Root -Android Devices and currently not with iOS. 高通公司的AllJoyn - 蓝牙显然仅适用于Root -Android设备,目前不适用于iOS。

  • iOS GameKit Local Multiplayer by prime31 - Only for iOS. 由game31开发的iOS GameKit本地多人游戏 - 仅适用于iOS。

  • Bonjour Plugin by Gregzo - Not Bluetooth but a other local-multiplayer solution only for iOS. Gregzo的Bonjour插件 - 不是蓝牙,而是仅适用于iOS的其他本地多人游戏解决方案。

  • TNet : Not Bluetooth, only for Android and iOS Pro TNet :非蓝牙,仅适用于Android和iOS Pro

Has anyone any other solution (especially for Android)? 有没有任何其他解决方案(特别是Android)?

I would be grateful for any help. 我将不胜感激任何帮助。 Also for other p2p-Unity-Solutions. 也适用于其他p2p-Unity-Solutions。

For Ships N' Battles (a cross platform multiplayer game Unity authored) we have built several ways to perform a multiplayer game: 对于Ships N'Battles (跨平台多人游戏Unity创作),我们已经构建了多种方式来执行多人游戏:

via Bluetooth (using Prime31 plugin) 通过蓝牙(使用Prime31插件)

  • iOS iOS版

I've never seen a game with multiplayer between iOS and Android using Bluetooth. 我从来没有见过使用蓝牙在iOS和Android之间玩多人游戏的游戏。

via LAN (using Unity RPC ) 通过LAN(使用Unity RPC

  • iOS iOS版
  • Android Android的
  • Mac 苹果电脑
  • Web (Kongregate) 网(Kongregate)

The players can start combats in a Local Area Network with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on. 玩家可以使用以上任何设备在局域网中开始战斗:iOS与iOS,iOS与Android,Android与Mac等。

via Game Center (using Prime31 plugin) 通过游戏中心(使用Prime31插件)

  • iOS iOS版

Uses the Game Center multiplayer to match combats. 使用Game Center多人游戏来匹配战斗。

via Global Server (an in-house solution) 通过Global Server(内部解决方案)

  • iOS iOS版
  • Android Android的
  • Mac 苹果电脑
  • Web (Kongregate) 网(Kongregate)

The players can start combats around the world with any of above devices: iOS vs iOS, iOS vs Android, Android vs Mac, and so on. 玩家可以使用以上任何设备在世界各地开始战斗:iOS与iOS,iOS与Android,Android与Mac等。

For this solution we have built a online server, but you can use something like Photon . 对于这个解决方案,我们已经构建了一个在线服务器,但你可以使用Photon之类的东西。

For Android, you can use plugin I've released recently: Android Bluetooth Multiplayer 对于Android,您可以使用我最近发布的插件: Android蓝牙多人游戏

For iOS, I've made a plugin as well: Local Multiplayer for iOS/tvOS/macOS 对于iOS,我也制作了一个插件: 适用于iOS / tvOS / macOS的本地多人游戏

Both are designed to be compatible with Unity built-in multiplayer, so you can use any of existing tutorials about Unity built-in networking or reuse your existing networking code with minimal changes. 两者都旨在与Unity内置多人游戏兼容,因此您可以使用任何有关Unity内置网络的现有教程,或者只需最少的更改即可重用现有的网络代码。

Unity Announcing UNET (UDP based Multiplayer) Unity宣布UNET (基于UDP的多人游戏)

http://forum.unity3d.com/threads/unet-sample-projects.331978/ http://forum.unity3d.com/threads/unet-sample-projects.331978/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM