Online Multiplayer Game Tutorial #12 - Enhanced Interpolation
Chris Courses
Add onto this game with more JS game knowledge at https://chriscourses.com/game-course
There's still a bit of jitter when transmitting player positions to other connected players. Here we'll use a different form of interpolation to smooth out player movements and keep our collision detection code relatively intact.
Game demo: http://multiplayer.chriscourses.games/ GitHub source code: https://github.com/chriscourses/multiplayer-game/commit/29a980162b10473237a29f734fc9ba763221f03c
2:09 Determine player's target position 4:15 Interpolate to target position 9:37 Remove client-side prediction 11:46 Update server with new code 15:00 Finished product 15:13 Next steps ... https://www.youtube.com/watch?v=wEeUFN4Nzq0
2023-08-03
0.0 LBC
Copyrighted (contact publisher)
91559411 Bytes