From 4076f29a3f2ed976640e680e1632e0f6fa31f63e Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 18 Jul 2023 08:15:48 -0700 Subject: [PATCH] Fix "WASD" example in README (#466) * trim trailing whitespace in README * fix 'wasd' key map in README example, very important --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2fbf07dc..be89f961 100644 --- a/README.md +++ b/README.md @@ -18,23 +18,23 @@ GameConfig( // optional struct name window_size: (800, 600), window_title: "PAC-MAN", fullscreen: false, - + mouse_sensitivity: 1.4, key_bindings: { "up": Up, "down": Down, "left": Left, "right": Right, - + // Uncomment to enable WASD controls /* "W": Up, - "A": Down, - "S": Left, + "S": Down, + "A": Left, "D": Right, */ }, - + difficulty_options: ( start_difficulty: Easy, adaptive: false, @@ -146,7 +146,7 @@ struct MyStruct { fn main() { let x: MyStruct = ron::from_str("(boolean: true, float: 1.23)").unwrap(); - + println!("RON: {}", ron::to_string(&x).unwrap()); println!("Pretty RON: {}", ron::ser::to_string_pretty(