GM: Shared data

From GMpedia.org Wiki

Jump to: navigation, search

Shared data communication is a mechanism by which multilayer games can synchronize their data. There is an array of size 1,000,000 which is common to all entities of a game. Any entity of the game may read from or write to this array by calling one of the following two functions:

Initially, all values are set to 0.

To ensure that all data arrives on the second machine you can verify it using mplay_data_mode(guaranteed). Guaranteed transmission mode is the default, but it is also slower.

Personal tools