An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/hujun-open/hitbox

Package hitbox implement collision detection for 2D game, it detects collision between two rectangles, supports rotate and flip; it is based on separating axis theorem (SAT). Usage: create one or multiple HitBox to match the shape of your sprite, call HitBox.Collide to test collision with another HitBox. all exposed methods of HitBox is thread safe; Cordinate system: X increases going right, Y increases going down

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/hujun-open/hitbox
License: MIT
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/hujun-open
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago

    Loading...
    Readme
    Loading...