This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Commit b86ec43
authored
Reset velocity on borders (#8)
* Refactor game structure: move paddle logic to game module and update viewport constants for default values
* Add ball module and implement ball movement system; refactor paddle creation
* Make BALL_RADIUS and PADDLE_SIZE public; adjust paddle size calculation
* Refactor ball radius calculation to use PADDLE_SIZE; update wall collision logic accordingly
* Add missing allow attribute for dead code in ScalingStrategy enum
* Implement ball physics and collision systems; add walls module and update game structure
* Reorder update systems to ensure viewport updates occur alongside game logic
* Add ball holding and launching mechanics; clean up build tasks
* Refactor wall creation logic into a helper closure for improved readability and maintainability
* Update workflow to trigger on pull requests for Rust files and Cargo.toml
* bump version to 0.6.0 in Cargo.toml
* Super-Linter: Fix linting issues
* QoL Refactoring of the paddle movement system to reset velocity on direction change when hitting walls
* Bump version to 0.7.0 in Cargo.toml1 parent 0b5c6ea commit b86ec43
2 files changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
0 commit comments