1 decade ago by Xaan
Hey guys,
Say you had a multiplier game made with impact. I've already gotten a demo working with nodejs and socket.io without impact - that is, I made a small demo from scratch where players can see each other and talk to one another.
Now, after I'm done with this little proof of concept, I want to start on a real project with Impact.
However, just thinking about it, I see a problem. In order to prevent cheating, in my demo a lot of the logic was done on the server. The way it works is: the player sends input to the server, and the server calculates the next state of the game and sends any changes back to the client. Meanwhile, the client would simulate it's own version of the game world for smoothness, and the simulation would be corrected by the server every once in a while.
How would you go about doing that with Impact? Things like collision checking especially would have to be done on the server. Is there a way to run Impact on a nodejs server? Is there some really obvious solution in regards to cheat prevention I'm overlooking?
I'd greatly appreciate any input.
Thanks,
Xaan
Say you had a multiplier game made with impact. I've already gotten a demo working with nodejs and socket.io without impact - that is, I made a small demo from scratch where players can see each other and talk to one another.
Now, after I'm done with this little proof of concept, I want to start on a real project with Impact.
However, just thinking about it, I see a problem. In order to prevent cheating, in my demo a lot of the logic was done on the server. The way it works is: the player sends input to the server, and the server calculates the next state of the game and sends any changes back to the client. Meanwhile, the client would simulate it's own version of the game world for smoothness, and the simulation would be corrected by the server every once in a while.
How would you go about doing that with Impact? Things like collision checking especially would have to be done on the server. Is there a way to run Impact on a nodejs server? Is there some really obvious solution in regards to cheat prevention I'm overlooking?
I'd greatly appreciate any input.
Thanks,
Xaan