Best Practices for Implementing Multiplayer

Hello all. I’ve been working with p5.js and p5.play for some time, and I’ve been interested in making some multiplayer games, but I don’t know if my implementation is well structured. I tried my hand at it with this game and multiplayer works, but it’s rather slow, and I’m thinking it has something to do with the way I implemented the code. Can anyone please provide an explanation of how to implement multiplayer better?

Thanks in advance :slight_smile:

What does your game do?

What do you mean is slow? Slow responsiveness? Please provide more objective details.

Kf

The game is here. By slow, I mean that the movement is rough.

@Battlesquid – you might try pinging @r4nd0m, who has recently been developing a real-time online multiplayer game with p5.js