multiplayer party game like kahoot
i want to know if a multiplayer party game like kahoot is doable, the idea is that the server is a screen and the clients are phones that act as controllers for the screen
2 Replies
Hi @MasterOX 水. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, creating a multiplayer party game like Kahoot is doable using the NormalVR platform. You can create a multiplayer environment where the server acts as the main screen and the clients (players) use their phones as controllers.
To achieve this, you would need to create a player controller that can be instantiated for every player in the multiplayer room. This can be done by adding a RealtimeView to the Player, creating a Resources folder, and dragging the Player into the Resources folder. You can then delete it from the scene once this is done. You would also need to create a script to instantiate a copy of the prefab after you connect to a room. This script would also wire up the Parent Constraint reference so the camera follows the newly instantiated player prefab. Here is a sample code for this:
(Source: Creating a Player Controller (https://normcore.io/documentation/guides/creating-a-player-controller#making-it-multiplayer))
For the game to work on phones, you can use Normcore's WebGL support which allows any Normcore project to be compiled for WebGL with no modifications to the source project. This means that the game can be played on a web browser on a phone.
(Source: WebGL (https://normcore.io/documentation/platforms/webgl))
However, getting a list of all rooms and how many players are in them is something that you would need to manage yourself as it is not currently supported by Normcore.
(Source: Common Questions (https://normcore.io/documentation/architecture/common-questions#how-do-i-get-a-list-of-all-rooms-and-how-many-players-are-in-them))
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@758040514678489279> kapa.ai is still learning and improving, please let us know how it did by reacting below