gschup / ggrs

GGRS is a reimagination of GGPO, enabling P2P rollback networking in Rust. Rollback to the future!
Other
507 stars 25 forks source link

Allow player to trigger desync on purpose in examples #62

Closed PraxTube closed 10 months ago

PraxTube commented 11 months ago

Added a function in the examples to trigger a desync by moving player 1 to the origin in local session only. This will create a desync which can be useful to simply see and understand the output. Maybe you don't want to merge this, but I think it's quite useful for people to quickly see how a desync will be detected (otherwise it's quite hard to get an actual desync).

You possibly want to change the way the function is called.

gschup commented 10 months ago

I think a functionality like this is actually quite useful, but it needs a prominent explainer for the player. Maybe on the bottom of the playing area, we should display a string along the lines of: "Hit SPACE to cause a desync!"

PraxTube commented 10 months ago

:+1: I might work on a lot more documentation-ish work in the future, but for now I have other things I must focus on (and I first need to get a better understanding of how things work anyways).