Skip to content

Add support for tracking multiple guns - #17

Open
Crecket wants to merge 44 commits into
apollyon-sys:mainfrom
Crecket:upstream-pr/multiple-guns
Open

Add support for tracking multiple guns#17
Crecket wants to merge 44 commits into
apollyon-sys:mainfrom
Crecket:upstream-pr/multiple-guns

Conversation

@Crecket

@Crecket Crecket commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Assumes all of #8 through #16 are merged; it is built on a local integration branch that merges all nine.

Artillery becomes a list. S.origin and S.weapon become accessors onto the selected gun, so every existing reader keeps working and js/core/core.js is not touched at all. A panel over the top-left of the map adds, selects, renames, hides and removes guns, and every visible gun draws its own range rings and target line with the selected one on top. Clicking a gun picks that gun up instead of moving the selected one onto it, on mouse and touch alike. The list persists, and a single origin stored by #8 migrates into gun 1.

Per-gun rings call drawMaxRangeRing from #11 with the gun passed through, so there is one terrain-aware ring implementation, not two.

The last two commits are droppable: unreviewed machine-written Korean strings, and browser tests that need playwright.

This is useful for 1 person picking targets whilst tracking more than 1 person shooting the targets once we have live sharing support

image

Crecket added 30 commits August 29, 2026 19:19
@apollyon-sys

Copy link
Copy Markdown
Owner

I really like the multiple-guns feature, and the amount of testing you added here is appreciated

The problem is that this PR is built on top of #8#16, including a few changes I don't want to merge in their current form

Could you rebase the multi-gun work onto the cleaned-up main/integration branch once the other PRs are resolved, so the PR contains only the multiple-guns feature and its required changes?

The feature itself is absolutely something I want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants