ajusa / Spell

A game, using nodejs and Websockets
5 stars 1 forks source link

Interpolation #47

Open ajusa opened 8 years ago

ajusa commented 8 years ago

We need this. To make the game render smooth. We need a function, when given the last two data points, gives out a slope? Then we need all players being drawn on the screen to have the slope figured out by this function. CALC NO WHY DO I HAVE A NEGATIVE GPA I don't know the math for this, maybe EDIT: Since multiplayer is laggy (20 fps or so, depends on where you live) we need this, a lot. EDIT: What I am thinking, is that each player calculates their dx and dy, and sends that to the server. Or maybe that will still be laggy?

ajusa commented 8 years ago

With my current code, the performance was much better. Until the players started flying. I think that this will be great for our code. We need to fix this, then release