Skip to content

Limit entity position updates to a player's visible screen area to prevent cheating #45

@mattbruv

Description

@mattbruv

As someone has pointed out, they are able to modify the HTML (or something to this effect) and expand the viewing area of PIXI.js to show beyond the normal game area.

This "cheat" was also present in the original game, and can actually be advantageous as it gives the player more information.

I believe an easy fix for this is that when we ask for the changed state entries, we would have to do some additional processing where we create a changed state array for each connected player. If some plane's position is being updated and the x/y is not within a certain threshold of the player, null out the x/y update being sent to that player.

Screencast_from_03-10-2025_101713_PM.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions