Testing prototype – Multiplayer settings

I used the PUN2 plugin for Unity to achieve the multiplayer function. When connected to the internet, PUN2 allows players to connect to the central server -Photon Cloud and create virtual rooms. By joining the same virtual room, players in different locations can interact with others in the same virtual space.

PUN2 scripts screenshot

During the game, PUN2 can synchronize data between the local players. When one of the players moves the synchronized object, it will also move in others’ view. PUN2 can synchronize the game objects’ data including position, rotation, and animation.

The video shows the prototype of the multiplayer setup and the gameplay system setup.

There are the prototypes I test with multiplayer functions in VR. Once the player joins the same virtual room, it will generate their avatar and allow the player to interact with other people.

VR Multiplayer Prototype

Players could interact with the same objects in the multiplayer setup.

Multiplayer Interaction Prototype

Here shows the shooting function. Players grab the gun by pressing the grip buttons, and by pressing the triggers, players could shoot. In the prototype, the colour of avatars will change when the player is detected being shot.

Multiplayer Shooting Function Prototype

In this prototype, two players can communicate through the buttons in the virtual environment. When the player presses the button, it will also be displayed in the other player’s viewport. In this way, the player who knows the exact way to go could guide the other player to the right direction.

Multiplayer Communication Prototype

Leave a Reply

Your email address will not be published. Required fields are marked *