joeyshi12 / joeys-games

Collection of web games I made using the HTML5 canvas API
https://play.joeyshi.xyz
MIT License
0 stars 1 forks source link

Move player update logic to server #11

Open joeyshi12 opened 2 years ago

joeyshi12 commented 2 years ago

The app currently has a naive implementation of multiplayer.

There are some minor issues concerning gameplay, but this is not crucial to address at the moment since the app doesn't play around with any important data rn.

joeyshi12 commented 2 years ago

Emitting on every draw update is heavily affecting performance. Emit only on keypress inputs when moving update logic

joeyshi12 commented 2 years ago

Reference: https://www.gabrielgambetta.com/client-side-prediction-server-reconciliation.html