Comment

Comment by jay_kyburz

What you said is kind of complicated way of saying what I do.

Player client sends simple commands to the server. Server validates the command and updates game state.

The server then just simply listens for other clients to request the state of the world, at which point it sends a compete blob of data that includes everything that client can see!

The player can then interpret that data and send new commands as required.

My games are basically turn based so I don't need to poll the server constantly, just at the start of your turn and after every action.

parent jay_kyburz 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton