From 06d5ec4b1c97c955cab970e1b179e23919c11edd Mon Sep 17 00:00:00 2001 From: maxluli Date: Mon, 9 May 2022 16:06:33 +0200 Subject: [PATCH] Edited ReadMe and changed some keybinds to prevent the game from restarting instantly --- ReadMe.md | 5 +++-- src/main.rs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index fb5e500..f6ca8f1 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -39,6 +39,7 @@ You can also just enter ``` cargo build --release ```` and then start the binary ## How to play ? This is a local multiplayer game, so two players can play using the same keyboard, player 1 uses 'w' and 's' and so player 2 uses the arrow keys. -For now there is no leaderboard or score, so whenever someone looses, the game is over and the window closes. -Check on updates, I might add thoses features soon ! +For now there is no leaderboard or music or sound effects but im working on it :) +Check on updates, I might add features soon ! + diff --git a/src/main.rs b/src/main.rs index cb688e7..66d9e39 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,16 +191,16 @@ impl State for GameState{ } } GameStatus::Pause =>{ - self.score_text.set_content("Remember \nPlayer 1 uses 'w' and 's'\nPlayer 2 uses up and down arrow keys\nPress Enter to start the game"); + self.score_text.set_content("Remember \nPlayer 1 uses 'w' and 's'\nPlayer 2 uses up and down arrow keys\nPress Space to start the game"); - if input::is_key_down(ctx, Key::Enter){ + if input::is_key_down(ctx, Key::Space){ self.state = GameStatus::Playing; } } GameStatus::Ended =>{ if input::is_key_down(ctx, Key::Enter){ self.restart(); - println!("DEBUG: game restarted"); + //println!("DEBUG: game restarted"); } } }