mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-12 11:40:29 +08:00
Fixed client prediction and prepped for interpolation
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ sockets.set('log level', 0);
|
||||
|
||||
garageServer.createGarageServer(sockets,{
|
||||
logging: true,
|
||||
onUpdatePhysics: function (state, inputs) {
|
||||
onUpdatePlayerPhysics: function (state, inputs) {
|
||||
var i = 0;
|
||||
if (!state.x && !state.y) {
|
||||
state.x = 0;
|
||||
|
||||
@@ -3,7 +3,7 @@ $(function () {
|
||||
logging: true,
|
||||
clientSidePrediction: true,
|
||||
//interpolation: true,
|
||||
onUpdatePhysics: function (state, inputs) {
|
||||
onUpdatePlayerPhysics: function (state, inputs) {
|
||||
var i = 0;
|
||||
if (!state.x && !state.y) {
|
||||
state.x = 0;
|
||||
|
||||
Reference in New Issue
Block a user