Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
/ Blueberry Public archive

Multiplayer games with Bluetooth (Android) on Unity

Notifications You must be signed in to change notification settings

javierfoe/Blueberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blueberry

Asset that allows Multiplayer games to be played through Bluetooth and using Mirror between Android devices.

First clone the repository, download the unity packages from the following releases of Mirror and Ignorance, and unpack them.

Mirror:

https://github.com/vis2k/Mirror/releases/tag/v67.1.0

Ignorance:

https://github.com/SoftwareGuy/Ignorance/releases/tag/v1.4.0r2

This project uses this abandoned asset on the Unity Asset Store

Android Bluetooth Multiplayer: https://assetstore.unity.com/packages/tools/network/android-bluetooth-multiplayer-basic-20928

How to use

The most basic setup is to:

  • Replace KcpTransport for IgnoranceTransport.Ignorance.
  • Replace NetworkManagerHUD for BlueberryHUD.
  • Add BlueberryHelper component on NetworkManager gameObject.

In case HUD components are not used, BlueberryHelper methods StartHost,StartClient and StartServer need to be called instead of those from NetworkManager as done in the Chat scene.

With this setup you can make builds for both Windows Standalone and Android devices without changing the code. Depending on the target platform BlueberryHelper will trigger the Bluetooth functionality or just behave as a standard NetworkManager. This will hopefully ease the development time.

About

Multiplayer games with Bluetooth (Android) on Unity

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages