game_box icon indicating copy to clipboard operation
game_box copied to clipboard

Deprecate `version` and use a `broadcast` host function

Open bhelx opened this issue 1 year ago • 0 comments

Currently in GameBox, we use a version number in the assigns to represent the state of the game. If the version number changes, then the system knows it needs to update the clients. It essentially calls broadcast at this point.

This awkward inversion of control is only because we don't support host functions in elixir yet, or all the PDKs. Ideally we could support this way of doing things, or we could import some flavor of broadcast function to the game. This would allow the game developer to decide when a client needs to be re-rendered and be a nice demonstration about how host functions can be used.

bhelx avatar Apr 06 '23 14:04 bhelx