i made this random game to test out storing wasm files on nostr. works pretty well.
the game is downloaded from nostr relays and rendered in the browser.
blockwars.gg
i made this random game to test out storing wasm files on nostr. works pretty well.
the game is downloaded from nostr relays and rendered in the browser.
blockwars.gg
Love your github
TLDR how you make a game over nostr?
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.
also you can just use nostr for the social layer, as a friends list or something. no need to do everything over nostr.