Skip to main content
deleted 8 characters in body; edited title
Source Link
Kromster
  • 10.7k
  • 4
  • 54
  • 67

HTML Game Security How can I protect against a cheater changing variables on the client?

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room.
How

How can I protect against a cheater changing variables on the client?
If

If you can share with code loke this it will be great :)

HTML Game Security

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room.
How can I protect against a cheater changing variables on the client?
If you can share with code loke this it will be great :)

How can I protect against a cheater changing variables on the client?

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room.

How can I protect against a cheater changing variables on the client?

If you can share with code loke this it will be great :)

deleted 162 characters in body
Source Link

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room. Can I render canvas element on server side? Send events when pressing, for example, the W key to the server, and the server will then change the player's location
How can I protect against a cheater changing variables on the map or if the player pressed the SPACE bar to fire a pistol.client?
If you can share with code loke this it will be great :)

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room. Can I render canvas element on server side? Send events when pressing, for example, the W key to the server, and the server will then change the player's location on the map or if the player pressed the SPACE bar to fire a pistol.
If you can share with code loke this it will be great :)

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room.
How can I protect against a cheater changing variables on the client?
If you can share with code loke this it will be great :)

Source Link

HTML Game Security

I built a multiplayer fighting game with impactjs, socket.io and nodejs and faced with "change variables hack" (I want to call it like this). All my current logic with jump, running, shoot etc. is running on frontend, socket and nodejs just for creating a room. Can I render canvas element on server side? Send events when pressing, for example, the W key to the server, and the server will then change the player's location on the map or if the player pressed the SPACE bar to fire a pistol.
If you can share with code loke this it will be great :)