Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
groworld_multiplayer_prototype [2009-03-12 14:58] – davegriffiths | groworld_multiplayer_prototype [2009-03-12 14:59] – davegriffiths | ||
---|---|---|---|
Line 15: | Line 15: | ||
===OSC version=== | ===OSC version=== | ||
- | The osc version works in a peer to peer manner, in that there is no central server, and clients need to pass information around to each other. This has only been tested with 2 clients... Each client has a notion of the plant it ' | + | The osc version works in a peer to peer manner in that there is no central server, and clients need to pass information around to each other. This has only been tested with 2 clients... Each client has a notion of the plant it ' |
^ Message ^ Data ^ Send when ^ Action on receive ^ | ^ Message ^ Data ^ Send when ^ Action on receive ^ | ||
| /register | None | Joining game | Broadcast your plant back with /plant | | | /register | None | Joining game | Broadcast your plant back with /plant | | ||
| /plant | Plant ID, postion, colour and structure | When starting game, your plant changes or /register recieved | If it's the first time you've seen this plant id, add plant to world, otherwise update plant | | | /plant | Plant ID, postion, colour and structure | When starting game, your plant changes or /register recieved | If it's the first time you've seen this plant id, add plant to world, otherwise update plant | | ||
- | | /spray | Plant ID, pollen type | Pollen release button pressed | Add pollen from plant | | + | | /spray | Plant ID, pollen type | Pollen release button pressed | Add pollen from plant into atmosphere |
| /unregister | Plant ID | Leaving game | Remove plant from world | | | /unregister | Plant ID | Leaving game | Remove plant from world | | ||