Classic 3D Snake redefined in 3D. Multiplayer experience built on Mirror.
This is just a prototype and not production ready.
Three main folders mainly named: _Home, _Singleplayer, _Multiplayer
- _Home contains all the files and scripts for the Main Menu.
- _Singleplayer contains all the files and scripts for the singleplayer version of the game.
- _Multiplayer contains all the files and scripts for the multiplayer version of the game.
- Plugin contains the custon Unity Alert Plugin built on Java.
- Settings contains the Unity URP settings.
Please Note: Multiplayer experience is built on Mirror, although Photon Fusion works best, it was sensible to use Mirror on such a small scale. Both Singleplayer and Multiplayer versions are independent of each other. Meaning there might be a few shared Assets between them, but they run completely standalone independent of the other.
Please Note: Mirror might not work out of the box. So please navigate to _Multiplayer > Assets and delete the "Mirror" folder. Re-import Mirror using Unity Package Mangager.
Task C will be executed either when you click on the third option on the Homescreen, or the multiplayer game ends showing a alert at the end.
Please use two devices for this experiment, since Java's "currentActivity" for com.unity3d.player is not accessible in an editor.
1. Start the Game on a device.
2. Go to Settings > Connections > Wi-Fi > Click on the connected network and check the IP Address.
3. Make a note of this IP Address.
4. Start the game on an another device.
5. Now press on the second button on the Homescreen to start the Multiplayer Game.
6. The Session will start once both the player joins.
7. Client needs to enter the Server's IP Address in the Client Textbox given in the Network HUD Manager.
8. Server clicks on the "Host (Server + Client)".
9. Client clicks on "(Client)".
10. The Game starts once both the player joins.



