What is Nostr?
stuu /
npub1uqz…d98g
2024-04-16 03:35:32
in reply to nevent1q…9l57

stuu on Nostr: for this game its just the binary that is stored as notes on nostr and downloaded ...

for this game its just the binary that is stored as notes on nostr and downloaded from there, then put back together, and ran in the browser.

to make a multiplayer game, most of the logic is done on the game client side.

For my connect4 game, the game client will only listen for notes from the first two players who join. And they will send inputs to the relays when its their turn.

The game client will listen for the new input notes from the other player and apply them to the game.

For more complicated games you could use nostr to connect two players over webRTC and have a fully peer to peer game.

The only issue i found with this is it leaks your ip address, but maybe there is a way around that.
Author Public Key
npub1uqzgayu7mf2dwu0h3ydvvlyy87v7rpfyeeldvtud3zcd32xpdqdqjvd98g