{"id":26249493,"url":"https://github.com/randomgamingdev/basicrectanglecolliderjs","last_synced_at":"2025-12-26T09:44:43.423Z","repository":{"id":191118389,"uuid":"683960204","full_name":"RandomGamingDev/BasicRectangleColliderJs","owner":"RandomGamingDev","description":"A basic rectangle collision library made for just non-rotated rectangles that tells you the face collided with and has a collision system where you can have one element be static and one dynamic. It's mostly just for use in my projects, but feel free to use it in your own.","archived":false,"fork":false,"pushed_at":"2024-04-08T04:55:17.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-08T05:39:14.335Z","etag":null,"topics":["basic","collider","collider2d","collisions","demo","javascript","js","library","simple","small"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomGamingDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-28T06:39:44.000Z","updated_at":"2023-10-31T22:01:19.000Z","dependencies_parsed_at":"2023-08-28T08:09:38.316Z","dependency_job_id":null,"html_url":"https://github.com/RandomGamingDev/BasicRectangleColliderJs","commit_stats":null,"previous_names":["randomgamingdev/basicrectanglecolliderjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBasicRectangleColliderJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBasicRectangleColliderJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBasicRectangleColliderJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomGamingDev%2FBasicRectangleColliderJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomGamingDev","download_url":"https://codeload.github.com/RandomGamingDev/BasicRectangleColliderJs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243436372,"owners_count":20290780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic","collider","collider2d","collisions","demo","javascript","js","library","simple","small"],"created_at":"2025-03-13T15:37:59.780Z","updated_at":"2025-12-26T09:44:38.391Z","avatar_url":"https://github.com/RandomGamingDev.png","language":"JavaScript","readme":"# BasicRectangleColliderJs\nA basic rectangle collision library made for just non-rotated rectangles that tells you the face collided with and has a collision system where you can have one element be static and one dynamic with the dynamic collider getting pushed away by the other.\n\n\u003cimg src=\"BasicRectangleColliderJs.png\" width=\"512\" /\u003e\n\nYou can find examples [here](https://github.com/RandomGamingDev/BasicRectangleColliderJs/tree/main/examples). Currently [this](https://github.com/RandomGamingDev/BasicRectangleColliderJs/blob/main/examples/sketch.js) example uses p5.js.\n\nThis library supports drawing the collision box for debug purposes.\n\n(btw the only reason I use this in my projects is for the control and because I don't need anything more complex, but for a lot of projects I wouldn't recommend using this library. I'd only recommend this library if u want the same stuff that I did in my projects, which was a small quick and easy system with tons of control.)\n\nTo use it you can simply include https://cdn.jsdelivr.net/gh/RandomGamingDev/BasicRectangleColliderJs/collider.js in your HTML file! If you want to you can also just download the file and include it in your HTML file that way.\n\nbtw stuff updates so remember to specify a version/commit for your library if you want to use a link and don't want your code to automatically update to the newest version of the library\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fbasicrectanglecolliderjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandomgamingdev%2Fbasicrectanglecolliderjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandomgamingdev%2Fbasicrectanglecolliderjs/lists"}