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

How does multiplayer phaser work? #14

Open
matthewvcortese opened this issue Jun 17, 2017 · 1 comment
Open

How does multiplayer phaser work? #14

matthewvcortese opened this issue Jun 17, 2017 · 1 comment

Comments

@matthewvcortese
Copy link

So I haven't looked at the code at all, but I'm just wondering how you got Phaser to work securely for multiplayer.

Since Phaser controls physics/location on the client-side, isn't it possible for someone to hack their client to run fast or teleport in the game?

@Substractive
Copy link

Yes it is possible if the logic is on client side. You should have logic implemented on server side and client only sends and receives data.
Example of looting:
Player (Client) killed creature and opens up loot window. Client sends data to server which creature was killed, where and it's level or any other data. Then server checks if that is true , is that creature really at that position and that level or any other data needed and then server sends loot data and maybe experience to client and that's how you can know for sure that player killed that creature on right spot and give him right loot not one he hacked.

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

2 participants