How online co-op keeps four cats in sync
Four computers, hundreds of enemies and one pile of kibble. This is how Purrvivors keeps every screen in agreement, and what happens when a friend drops out.

Purrvivors started as a couch game: one screen, four controllers. Online co-op puts each player on a different computer, and each computer must show the same fight. This post explains how that works, without the hard words.
One computer is the referee
When you select Host Online Game, the game makes a friends-only Steam lobby for a maximum of 4 players. The computer of the host then becomes the referee. It runs the real fight: where each enemy is, who takes damage, what drops.
The other computers do not run a second copy of the fight. They send the host what their player does, and they draw what the host tells them. Thus two players can never disagree about a kill. The referee has only one answer.

Twenty pictures of the world each second
The host sends a small picture of the world to each friend as many as 20 times each second. A picture has the position of each cat and each enemy at that moment.
Twenty times each second is not smooth, and the internet does not deliver each picture on time. So your friends' computers show the other cats and the enemies about a tenth of a second in the past. With two known positions, one before and one after, the game can slide each character between them. You see smooth movement, not jumps.
One pile of kibble, four shoppers
In co-op the team shares the kibble, but each player buys on their own screen. That is a problem: two players can try to spend the same kibble at the same moment.
So a purchase is a request. Your computer asks the host, the host looks at the pile, and the host answers yes or no. Thus the same kibble is never spent twice. The greed meter then shows the team who spent it.

When a friend drops out
Connections fail. When a friend loses the connection, the game waits 60 seconds for them. The host can also continue without them. No cat left behind (for 60 seconds).
Why all players need the same version
Each version of the game can change the messages that the computers send to each other. If two versions talked together, one computer could read a message wrongly. So the game compares the versions in the lobby, and it tells you the version of the host when yours is different. Update the game, and you can join.
That is all of it: one referee, twenty pictures each second, a short look into the past, and a polite line for the shop.