Skip to content

Commit

Permalink
Fix: stop repeatedly reloading when holding down R, change to detect …
Browse files Browse the repository at this point in the history
…only once
  • Loading branch information
yutotakano committed Mar 27, 2023
1 parent e070318 commit 255fd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HammeredGame/HammeredGame/HammeredGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected override void Update(GameTime gameTime)
// Check for exit input
if (input.BACK_DOWN || input.KeyDown(Keys.Escape)) Exit();

if (input.ButtonPress(Buttons.Y) || input.KeyDown(Keys.R))
if (input.ButtonPress(Buttons.Y) || input.KeyPress(Keys.R))
{
InitializeLevel(testObstaclesCombo);
}
Expand Down

0 comments on commit 255fd8a

Please sign in to comment.