JA2 Stracciatella is a community driven open source project that welcomes all. It has a few maintainers, who keep the big picture in mind, and a long list of contributors. The code can be forked, poked, twisted and hacked. It can be customized, extended, and collaboratively developed. You are invited to do so and join us!
That being said, not all contributions are welcome, since the project has a defined scope: a portable, cleaned-up JA2 with a limited set of (chocolate) additions. Large gameplay changes as seen in the 1.13 mod are therefore scoffed upon.
Play the game and see what bothers you, what bug you hit, then report it and try to fix it. If you don't have an itch to scratch, we suggest looking at our bug tracker, for example the help wanted list.
Instructions on building and IDE setup can be found in COMPILATION.
If you are not a developer, there are many other possibilities which do not require programming skills to help JA2 Stracciatella to evolve. For example, you can help by retesting bug reports labelled with retest, help triage bugs, test solutions, research, create mods and more.
- When in doubt, follow the style of the existing function or file. 1.1. When creating a new file, follow the style of existing related files 1.1.1. Do not forget to include the license header.
- Code indentation is done with single tabulators. 2.1. Don't add spaces after opening or before closing parentheses.
- Try to avoid creating very long lines. There is no set maximum.
- Sort includes by type (project, system) and alphabetically.
- Avoid changing or fixing the style just for the sake of it.
- Dead code should be removed, not disabled with comments or a macro directive.
- Split your changes (commits) into well-rounded units of logic (git commit -p can help).
- Each commit should compile and run.
- Commit messages should be descriptive (why is more important than what).
- Rebasing and force pushing to pull request branches is fine.
All of this makes reviewing and bisecting for regressions easier.
- New code should have tests if possible.
- Merge a PR only after it has at least one other approval and it builds successfully on all buildbots (currently AppVeyor and GitHub Actions).
- Squash merge only if the history is a mess or it makes more sense (eg. the whitespace sync PR).
- For release planning check the milestones (copied over each time) and the checklist