Feature/Add movement interpolation #5

Merged
jusemon merged 1 commit from feature/add-movement-interpolation into main 2025-11-26 09:36:40 -05:00

1 commit

Author SHA1 Message Date
257cd017af Refactor Player Movement Logic
All checks were successful
Build and Publish Docker Image / Build and Validate (pull_request) Successful in 8s
Build and Publish Docker Image / Publish to Registry (pull_request) Has been skipped
- Updated Player class to use maxSpeed, acceleration, and deceleration for smoother movement.
- Introduced velocity vector for more responsive control and smoother diagonal movement.
- Enhanced update method to calculate target velocity based on input and apply easing for acceleration and deceleration.
- Implemented boundary checks to stop movement when hitting the edges of the play area.

This change improves the overall player control experience, making movement more fluid and intuitive.
2025-11-26 09:33:56 -05:00