Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How mud implement the moving system #240

Closed
rubb1sh opened this issue Nov 5, 2022 · 1 comment
Closed

How mud implement the moving system #240

rubb1sh opened this issue Nov 5, 2022 · 1 comment

Comments

@rubb1sh
Copy link

rubb1sh commented Nov 5, 2022

Frequent updates of coordinate states are not possible to implement in a smart contract. Since updating a smart contract requires gas, I'm curious how mud implements recording and updating character coordinates.

@alvrs
Copy link
Member

alvrs commented Jan 4, 2023

I assume you refer to OPCraft's position sync? We used the MUD relayer, which can distribute signed messages off-chain: https://github.com/latticexyz/opcraft/blob/main/packages/client/src/layers/noa/systems/createRelaySystem.ts#L128-L137

@alvrs alvrs closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants