Skip to content

Conversation

@Mru1726
Copy link

@Mru1726 Mru1726 commented Apr 15, 2025

I have improved the collision detection system of the game to :

  1. Uses SFML's getGlobalBounds() to check the actual sprite dimensions, including scaling and rotation.
  2. No more "Magic Numbers" for Hitboxes: Automatically adjusts for sprite size, making hitboxes accurate.
  3. Detects any overlap between sprites, even if they don’t align perfectly.
  4. Single checkCollision() function used consistently instead of repeated hardcoded checks everywhere.

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.

2 participants