Contribute to dk3¶
Start with the engine build tutorial, then read the architecture and the source area you want to change.
Build and check code¶
The component suite includes runtime, codec/security and process tests, formatting,
class ownership and synthetic asset-tool fixtures. make lint and make test
both invoke that suite. make fmt formats Zig code.
For gameplay changes, build connected behavior before running the relevant scenarios.
Keep the inputs and failure details needed to reproduce a problem. Use dkguard
for engine runs; see Headless runs.
Change documentation¶
Choose the document's purpose before writing:
- A tutorial walks a learner through a concrete result.
- A how-to guide solves one task for a reader who already knows the basics.
- A reference describes options, commands, formats and defaults.
- An explanation describes how a system works and why its design matters.
Write instructions in terms of the reader's task. Keep implementation journals, review records and test reports in the repository's development records rather than the user guide. Link related documents instead of repeating their contents.
To build the site:
python3 -m venv .venv-docs
.venv-docs/bin/python -m pip install -r dkq3/tools/requirements-docs.txt
make docs-site MKDOCS=.venv-docs/bin/mkdocs
To preview it locally, run .venv-docs/bin/mkdocs serve.
The site source is Markdown under docs/, selected by the navigation in mkdocs.yml.
Report or submit a change¶
Open a bug report with commands, expected behavior, actual behavior and relevant logs. Report vulnerabilities through the private security form.
For code, file a pull request with the behavior change and checks run. The contribution guide describes licensing and submission requirements.