A collision detection library for Ruby, works in Ruby2D, Gosu and Tic-80
A collision detection library for Ruby that makes it easy to detect collisions between 2D objects in your game or application. The library implements two popular collision detection algorithms AABB and SAT.
You can consult the documentation for this library in rubydoc.info, or you can generate the documentation with rdoc.
gem install bomp
Ensure you have the latest versions of Ruby and Gem installed on your system.
- Clone the Repository:
git clone https://github.com/sealtielfreak/bomp.rb.git
cd bomp.rb
- Install Gemfile:
- Follow the instructions at Install gems.
Contributions are what make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Before you start contributing, it's important to set up your development environment. This includes installing necessary tools and configuring pre-commit hooks to ensure code quality.
To maintain code quality and consistency, we use pre-commit hooks. Follow these steps to set up pre-commit hooks in your local development environment:
-
Install Pre-Commit:
- Ensure you have Python installed on your system.
- Install pre-commit globally using pip:
pip install pre-commit
-
Clone the Repository (if not already done):
git clone https://github.com/sealtielfreak/bomp.rb.git cd bomp.rb
-
Set Up Pre-Commit Hooks:
- In the root directory of the cloned repository, run:
pre-commit install
- The hook repository must have a
*.gemspec
. It will be installed via gem build*.gemspec && gem install *.gem
. The installed package will produce an executable that will match the entry.
- In the root directory of the cloned repository, run:
-
Usage:
- Pre-commit hooks will now run automatically on the files you've staged whenever you commit.
- You can manually run the hooks on all files in the repository at any time with:
pre-commit run --all-files
Now that you have done some changes and want to merge them in our repository, feel free to:
- Create your Feature Branch (
git checkout -b feature/amazing_feature
) - Commit your Changes (
git commit -m "Add some AmazingFeature"
) - Push to the Branch (
git push origin feature/amazing_feature
) - Open a Pull Request