Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rapid and continuous movement issue #14

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

ShenMian
Copy link
Owner

@ShenMian ShenMian commented Dec 6, 2024

Fixes #9

Address rapid and continuous movement issue in the game.

  • docs/customization.md

    • Add a section on handling rapid inputs and configuring the input buffer size.
  • src/board.rs

    • Add an input queue to manage rapid and continuous inputs in the move_or_push function.
    • Modify the Board struct to include the input queue.
  • src/systems/input.rs

    • Modify the player_move_to function to use the input queue for handling rapid and continuous inputs.

For more details, open the Copilot Workspace session.

Fixes #9

Address rapid and continuous movement issue in the game.

* **docs/customization.md**
  - Add a section on handling rapid inputs and configuring the input buffer size.

* **src/board.rs**
  - Add an input queue to manage rapid and continuous inputs in the `move_or_push` function.
  - Modify the `Board` struct to include the input queue.

* **src/systems/input.rs**
  - Modify the `player_move_to` function to use the input queue for handling rapid and continuous inputs.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ShenMian/sokoban-rs/issues/9?shareId=XXXX-XXXX-XXXX-XXXX).
* **docs/customization.md**
  - Add a section on handling rapid inputs and configuring the input buffer size.

* **src/board.rs**
  - Add a queue to manage rapid and continuous inputs in the `move_or_push` function.
  - Remove the `moveable` function as it is not used.

* **src/systems/input.rs**
  - Add a queue to handle rapid and continuous inputs in the `player_move` function.
  - Modify the `player_move` function to use the input queue.
* **docs/customization.md**
  - Add a section on handling rapid inputs and configuring the input buffer size

* **src/board.rs**
  - Add a queue to manage rapid and continuous inputs in the `move_or_push` function
  - Fix the unclosed delimiter error in the `move_or_push` function

* **src/systems/input.rs**
  - Modify the `player_move_to` function to use the input queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rapid and continuous movement can lead to unexpected behavior
1 participant