# Sync bullets node.js phaser.io

i am currently having a struggle thinking about syncing bullets. I am using node js and phaser.io and I am creating top-down shooter.

1. I would do it like this: Player shoots a bullet. Player sends information where that bullet is Player2 gets information and updates their bullet.

But the problem is, when client window is out of focus. Physics are paused and so are bullet movement, which is horrible for multiplayer game.

How can I achieve synced bullet across two or more clients .

I tried searching for information about server sided physics for node, but I really couldn't find any.

Thanks

• There are entire books written on the subject of multiplayer physics and a few by exactly that name. Nov 27 '16 at 2:59

game.stage.disableVisibilityChange = true;