Skip to content

Commit

Permalink
fix: Add info text for causing desync
Browse files Browse the repository at this point in the history
  • Loading branch information
PraxTube committed Oct 20, 2023
1 parent f92b550 commit b2f9d9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/ex_game/ex_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,16 @@ impl Game {
"Frame {}: Checksum {}",
self.periodic_checksum.0, self.periodic_checksum.1
);
let force_desync_info_str = format!("Press SPACE to trigger a desync");
draw_text(&last_checksum_str, 20.0, 20.0, 30.0, WHITE);
draw_text(&periodic_checksum_str, 20.0, 40.0, 30.0, WHITE);
draw_text(
&force_desync_info_str,
90.0,
WINDOW_HEIGHT * 9.0 / 10.0,
30.0,
WHITE,
);
}

#[allow(dead_code)]
Expand Down

0 comments on commit b2f9d9a

Please sign in to comment.