How to create the main menu according to the description given?
Options
in Photon Bolt
Hi, this is my first time on bolt, and I want to create a main menu scene as follows:
The scene has a canvas with 3 panels: p1, p2, p3(say). By default, p1 is open which has an input field to take in the username, and2 buttons, host and join. On clicking the host button, you are taken to p2, where there is text which shows the sessionID of the server created, and a text which should contain the list of all players connected so far. On the join button, you are taken to p3, where there is an input field to take in the sessionID of the server you wish to join, and a connect button which takes you to p2. Finally, p2 has a start button active only for the host, which should finally load the gameplay scene, which is a turn-based board game. Can Someone step by step guide me through this?
The scene has a canvas with 3 panels: p1, p2, p3(say). By default, p1 is open which has an input field to take in the username, and2 buttons, host and join. On clicking the host button, you are taken to p2, where there is text which shows the sessionID of the server created, and a text which should contain the list of all players connected so far. On the join button, you are taken to p3, where there is an input field to take in the sessionID of the server you wish to join, and a connect button which takes you to p2. Finally, p2 has a start button active only for the host, which should finally load the gameplay scene, which is a turn-based board game. Can Someone step by step guide me through this?
0
Answers
-
Hello @Prabhanshu ,
We are glad about your interest in Photon Bolt.
Please take a look at our "Lobby Manager" sample documented here: https://doc.photonengine.com/en-us/bolt/current/demos-and-tutorials/lobbymanager
The source code you can find inside the Photon Bolt SDK, at the samples package or you can take a look directly at our Samples repository: https://github.com/BoltEngine/Bolt-Sample/tree/master/LobbyManager
It implements a similar approach to what you've described, so it can be a good starting point for your version.
Have a nice day.0