Skip to content

0.16.0: the Replay view opens at the game's scale; grid, locations, fog and pointer carry over - #16

Merged
jeany55 merged 3 commits into
mainfrom
replay-carry-over
Oct 16, 2026
Merged

jeany55 merged 3 commits into
mainfrom
replay-carry-over

Conversation

@jeany55

@jeany55 jeany55 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Opens at the game's scale. A replay used to open at the map's 100%, as many rows of the map as the frame is tall, which is well zoomed out from the game on a tall frame. It now opens at the game's own 480 rows. Switching Map ⇄ Replay still keeps the scale.

Carries the editor's view over to the game (scm-js/scm-js#52):

  • The editor's grid, the map's locations and other plugins' overlays (Walkability, say) are drawn over the game, under Aftermath's own marks (paintOver, redrawn on onRepaint). They are not drawn in the cinematic view.
  • View ▸ Fog of War is the game's fog. On is a player's eyes: the one last chosen in Vision, or the first player at first. Off is everyone's. The toolbar button follows the Vision menu too (onFog / setFog).
  • The status bar's Tile and Px follow the pointer over the game (setPointer, from plugin-scm-sim 0.10.0).

Each piece is left out with an older editor or play page.

plugin-api: the devDependency is now ^1.54.0 (published from scm-js#52), so CI's typecheck has the new calls.

Testing: a new Game view test (fog, paintOver, pointer), and the opening test now expects 480 rows. All 123 tests and the typecheck pass against plugin-api 1.54.0. Checked end to end in a built editor with a replay: opens at 133%, grid over the game, Fog ⇄ Vision both ways, the pointer in the status bar. Rebased onto 0.15.1 (seek-stall).

Known, not from this change: choosing a player's eyes at 0:00 shows black until the game runs. The Vision menu does the same.

🤖 Generated with Claude Code

jeany55 and others added 3 commits October 16, 2026 10:12
The Replay view opened at the map's 100% — as many rows of the map as the frame is
tall — which on a tall frame is well zoomed out from the game. It now opens at the
game's 480 rows across the frame's height, on the first player's start. Switching
between the map and the replay still keeps the scale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he Replay view

The game is drawn under the editor's grid, the map's locations and the other
plugins' overlays (MapViewHandle.paintOver, redrawn on onRepaint), below
Aftermath's own marks and not in the cinematic view. View ▸ Fog of War is the
game's fog: on is a player's eyes (the last chosen, the first player at first),
off is everyone's, and the toggle shows what the Vision menu says (setFog). The
pointer's map pixel from scm-sim 0.10.0 goes to the editor's status bar.

Needs plugin-api 1.54 for the types; works with older editors and play pages,
which leave each piece out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeany55
jeany55 marked this pull request as ready for review October 16, 2026 16:21
@jeany55
jeany55 merged commit 628352f into main Oct 16, 2026
1 check passed
@jeany55
jeany55 deleted the replay-carry-over branch October 16, 2026 16:23
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.

1 participant