Skip to content

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.

ShenMian and others added 5 commits December 6, 2024 13:25
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
@ShenMian ShenMian force-pushed the main branch 4 times, most recently from 1be6994 to b65e77f Compare January 22, 2025 00:26
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