• GDScript 99.8%
  • Shell 0.1%
Find a file
2026-11-04 10:15:23 +03:00
.githooks initial 2026-11-03 13:43:38 +03:00
addons chore: add icon and splash image 2026-11-04 10:15:23 +03:00
test initial 2026-11-03 13:43:38 +03:00
.editorconfig initial 2026-11-03 13:43:38 +03:00
.gitattributes initial 2026-11-03 13:43:38 +03:00
.gitignore initial 2026-11-03 13:43:38 +03:00
CONTRIBUTING.md initial 2026-11-03 13:43:38 +03:00
devenv.lock initial 2026-11-03 13:43:38 +03:00
devenv.nix initial 2026-11-03 13:43:38 +03:00
icon.svg chore: add icon and splash image 2026-11-04 10:15:23 +03:00
icon.svg.import chore: add icon and splash image 2026-11-04 10:15:23 +03:00
LICENSE initial 2026-11-03 13:43:38 +03:00
project.godot chore: add icon and splash image 2026-11-04 10:15:23 +03:00
README.md initial 2026-11-03 13:43:38 +03:00
splash.png chore: add icon and splash image 2026-11-04 10:15:23 +03:00
splash.png.import chore: add icon and splash image 2026-11-04 10:15:23 +03:00

Hitbox

2D and 3D hit detection system plugin for Godot 4.7.

Getting started

There are two ways to set up the development environment: with devenv (recommended) or manually.

With devenv

devenv provides all required packages in a self-contained reproducible shell.

  1. Install devenv.

  2. From the project directory, enter the development shell:

    devenv shell
    

Manually

Install the following requirements:

Git hooks

The repository ships a pre-commit hook in .githooks/pre-commit that lints staged GDScript files with gdscript-formatter and blocks the commit if there are any warnings. Only when linting passes does it format the files and re-stage them.

  • With devenv: the hook is enabled automatically when entering the shell.

  • Manual setup: enable it with:

    git config core.hooksPath .githooks
    

Opening the project

Open the project using the Godot Project Manager or run the following command from the project directory:

godot --path . --editor

Running tests

The project uses GUT. Run the test suite from the project directory:

godot --headless --path . -s addons/gut/gut_cmdln.gd -gdir=res://test -gexit

Installation

  1. Copy addons/hitbox into your project's addons directory.
  2. Enable hitbox in Project > Project Settings > Plugins.

Documentation

License

Released under the MIT License.