mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-24 12:50:31 +08:00
Updated GarageServer.IO API calls to support client side prediction for entities - #20
This commit is contained in:
@@ -52,7 +52,7 @@ GarageServerIO.initializeGarageServer('http://insertmygameserverurlhere.com', {
|
||||
onReady: function () {
|
||||
// Call your game loop
|
||||
},
|
||||
onUpdateClientPredictionReady: function (playerId, playerCurrentState, inputs, deltaTime) {
|
||||
onUpdateClientPredictionReady: function (playerId, playerCurrentState, entityCurrentStates, inputs, deltaTime) {
|
||||
var newState = {};
|
||||
if (!playerCurrentState.x) {
|
||||
playerCurrentState.x = 0;
|
||||
|
||||
Reference in New Issue
Block a user