Sign in to follow this  
yurqo

How to make my multiplayer Air-Hockey better?

Recommended Posts

Hi everyone. I've made simple multiplayer game but don't like how it works. What I used: 


- Matter.js (tha't an overkill for such simple game but I've never used 2d physics engines before and wanted to try it out)

-  Super naive client prediction - naive because there is no reconciliation - at this point I think there's no need for that because striker (a thing you use to hit puck) is not limited by anything except field bounds

- linear interpolation by last 2 updates (it's turned off on the attached video because at the current state of the game in combination with prediction it made things look worse. I'm not even sure if it's needed at all with 60 tickrate )

Any suggestions on how to improve it? I probably should use some kind of extrapolation for puck and maybe even enemy player (I think not to the same extent as with puck because strikers can start and stop moving instantly). Is it a good idea to run 2 entities of Matter.js on a server - 1 for actual game world and other one for for extrapolated world?

 

https://www.youtube.com/watch?v=gvLAeOTgaK0

 

Edited by yurqo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.