-
Notifications
You must be signed in to change notification settings - Fork 3
4) Examples
Nicholas Ventimiglia edited this page Dec 27, 2015
·
3 revisions
The Ortc example scene is your real time 'hello world'. It features the simplest implementation of the ortc system. The terminal contains buttons to the right for easily invoking each ortc feature so you may see how the realtime works.
- Open the OrtcExample scene
- In the scene hierarchy, inspect the Ortc game object
- In the OrtcExample component, add your application key and private key.
- Run the scene
The lobby example is a low level system which seeks to replicate common game server functionality.
- Uses may join a connect with a userId and userName
- Users may join a global 'lobby' room.
- While in the lobby :
- Users will receive presence notifications of the other users
- Users will receive notifications of public rooms to join
- Users may send chat and RPC messages to one another
- Users may create or join game rooms.
- While in a room :
- Users will receive presence notifications of the other users
- Users may send chat and RPC messages to one another
- An 'Authority' (client) is selected based on join time.
- Open the Lobby Example scene
- In the scene hierarchy, inspect the Lobby game object
- In the Lobby Example component, add your application key and private key.
- Run the scene