- Open Godot.
- In Godot’s Project Manager, click “Import”.
- Navigate to the
project/
folder. - Select
project.godot
. - Click “Import & Edit”.
- Click on the playtest button that looks like this: ▶
-
Every file should declare its own copying information. See the comment at the top of
COPYING.md
for an example. -
Use tabs for indentation. The only exception to this rule is in YAML files because YAML requires spaces for indentation. In YAML files, use 4 spaces for indentation.
-
The .pxo files are Pixelorama projects.
-
Before adding images to the project, I convert them into lossless WebPs using cwebp to make them smaller:
cwebp input.png -o lossless output.webp
Cwebp is from libwebp.
You can use pre-commit to automatically check your contributions.
- Open a terminal.
- Make sure that pre-commit is installed.
- Run
pre-commit --version
- If it gives you an error, follow these instructions.
- Run
cd
to the root of this repo.- Install pre-commit as a Git hook. To do so, run
pre-commit install
At this point, whenever you run git commit
, pre-commit will run a series of
tests for the files that you modified.
There’s a few pre-commit hook failures that I’m OK with:
- Some Markdown files fail one of pre-commit’s hooks, but only because one line is too long. I’m OK with that line being too long.
When I run into an error that I’m OK with, I skip the failing hooks for that commit.
See COPYING.md.