Using PUN to add multiplayer to my tetris like ?
Options
Hi,
To learn Unity, i started to develop a Tetris like.
Now I want to add multiplayer to my game, as in this picture:
Each player can see his grid in large and the others in small. We can imagine more players (player 4, player 5, …).
How can i do that with PUN ?
Reading the doc, I understand:
1/ Players can connect to a room
2/ In my scene,I need a PhotonView (to control players’actions)
3/ With that, I can send RPCs
4/ each scenes can be updated thanks to RPCs
Example:
- player 2 do a rotation
- the controller send a RPCs to others players
- each others controllers receive “call to Rotate” with param “Player 2”
- all of the grids of player 2 are updated
Is this correct ?
Thank you
(and sorry for my english ^^)
To learn Unity, i started to develop a Tetris like.
Now I want to add multiplayer to my game, as in this picture:
Each player can see his grid in large and the others in small. We can imagine more players (player 4, player 5, …).
How can i do that with PUN ?
Reading the doc, I understand:
1/ Players can connect to a room
2/ In my scene,I need a PhotonView (to control players’actions)
3/ With that, I can send RPCs
4/ each scenes can be updated thanks to RPCs
Example:
- player 2 do a rotation
- the controller send a RPCs to others players
- each others controllers receive “call to Rotate” with param “Player 2”
- all of the grids of player 2 are updated
Is this correct ?
Thank you
(and sorry for my english ^^)
0