01Reporting a bug or suggesting a change
Open an issue with the matching template. For bugs, include the game version (shown on the main menu), the map, difficulty and wave, your browser and device, and what you expected to happen. A screenshot or short clip helps a lot.
02Making a change
- Branch from
main.mainis always the released game. - Make the change, keeping to the rules in docs/ARCHITECTURE.md and below.
- Run
npm run check, and the balance bot if you touched rules or waves (see docs/DEVELOPMENT.md). - Playtest through the normal menus (see Playtesting), including the phone layout for UI changes.
- Describe user-visible changes in the top entry of
site/release-notes.jsonand runnode tools/changelog.cjsto regenerate CHANGELOG.md. - Open a pull request that says what changed, why, and how you tested it. Include desktop and phone screenshots for visible changes.
03Rules to keep
game/Substellar.dc.htmlis the game's only entry point. Don't add a build step or a bundler for the game.- Treat
game/support.jsas vendored. Don't edit it. - Bump the
?v=cache buster on the script tag of anysub-*.jsfile you edit. - Every defense emits one fire event named after its
DEFid, with a matching voice inSND. Effects and sounds share one code path for every map; only acoustics are per map. - Map art must match the map's mask cell for cell (65 px cells).
- Use
<div role="img" style="background:url({{ x }}) ...">for template images, never<img src="{{ x }}">. - Never clear browser storage the game did not write (
substellar.v2,substellar.session). - Keep the bot's route trace in
tools/balance-bot.js. - Release text lives only in
site/release-notes.json. Never editCHANGELOG.mdor write release notes into the website's HTML.
04Licensing
By contributing you agree that your contribution is released under the project's MIT License. Only add art, audio or code you have the right to release under it, and list any third-party component in THIRD_PARTY_NOTICES.md.