Skip to content

Collision cleanup#1567

Merged
einarf merged 17 commits intodevelopmentfrom
collision-cleanup
Feb 23, 2023
Merged

Collision cleanup#1567
einarf merged 17 commits intodevelopmentfrom
collision-cleanup

Conversation

@einarf
Copy link
Member

@einarf einarf commented Feb 21, 2023

  • Split up the spatial hash module
  • Moved geometry functions to a separate module
  • Cleaned up geometry module and exposed all functions
  • Moved some geometry functions into math
  • Make SpatialHash a public member
  • Clean up SpatiaHash with proper typing
  • Use sets in SpatialHash for overall better perfromance and protection against duplicates
  • Various optimizations in sprite and spritelist
  • Clean up deprecated stuff in SpriteList
  • Moved some functions out of the arcade module
  • Removed deprecated SpriteList is_static
  • added math.round_fast
  • Added several missing docstrings
  • Added get_sprites_in_rect
  • Added SpatialHash.get_sprites_near_rect
  • Many small optimizations
  • SpriteList.update_x methods are not private
  • Added more unit testing

@einarf einarf marked this pull request as ready for review February 23, 2023 07:20
@einarf einarf merged commit 83d9cb5 into development Feb 23, 2023
@einarf einarf deleted the collision-cleanup branch February 23, 2023 08:02
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.

1 participant