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 :)
HTML Game Security
李白 puer
- 13
- 3