Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Side Prediction #6

Open
morfeus87 opened this issue Mar 27, 2012 · 0 comments
Open

Client Side Prediction #6

morfeus87 opened this issue Mar 27, 2012 · 0 comments

Comments

@morfeus87
Copy link

Hello Mario,
there is some form of client-side prediction in the framework?

I thought about putting some kind of prediction based on user input in "constructEntityDescription" of "KeboardInputTrait" (transformed for my needs "KeboardMouseInputTrait") just simply processing user input and waiting for the next "SERVER_FULL_UPDATE" overwrites the "world state".

constructEntityDescription: function (gameTick, wantsFullUpdate)
{
this.processInputNow ()
return {
EntityID: this.entityid,
Input: this.input.constructInputBitmask (),
inputLook: this.input.constructInputLook ()
}
},

processInputNow: function ()
{
this.attachedEntity.updatePosition ()
this.attachedEntity.updateLook ()
this.attachedEntity.updateFire ()
}

Do you think that is a correct method?
There are better ways?
You're the only person who can help me, thank you anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant