About this game PET PARADE
Development notes
Commands, not positions
The simulation runs on whole numbers at 20 steps a second, and the only input is which job went to which pet on which step. The server can therefore rerun a cleared level from that short list and decide the stars itself instead of trusting a score sent by the browser.
One clock for every racer
In a race the server steps every player's copy of the map together, 200 milliseconds behind real time so commands have time to arrive. Your own map runs at the present moment and rewinds to a saved point if the server had to move one of your commands to a later step. Rivals' pets are replayed from their confirmed commands 400 milliseconds late and drawn faded on your map.
Every level has a written solution
Each map ships with a step-by-step solution that the automated tests replay to prove it can be cleared, while a second test checks that doing nothing fails. Race bots follow the same solution: easy bots keep the starting release, normal bots raise it by two, and hard bots use the speeds written in the solution.
Updated: