Skip to content

Add Tiled round-trip example and dev.to article - #35

Merged
riebel merged 2 commits into
masterfrom
devto-roundtrip
Sep 27, 2026
Merged

riebel merged 2 commits into
masterfrom
devto-roundtrip

Conversation

@riebel

@riebel riebel commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • examples/tiled-roundtrip: a runnable demo of the Tiled → PixiJS → Tiled loop. It loads level.tmj, builds a bridge with four setTile clicks, and exports the edited map as Tiled JSON. It depends on the published pixi-tiledmap package, so StackBlitz can run it straight from the repository, and the page scales down to narrow previews.
  • assets/devto-roundtrip: the draft dev.to article, its GIF (1000×792, ~14 s, 1.6 MB) and cover image (1000×420), plus the scripts that record them:
    • capture-browser.mjs clicks the real demo in headless Chrome over CDP and saves the actual export.
    • capture-tiled.ps1 captures Tiled 1.12.2 with that exported file open, the Bridge layer selected, and Highlight Current Layer on.
    • compose.py builds the GIF from those captures. Its output is reproducible byte for byte.
  • .fallowrc.json: ignores assets/**. These are one-off recording scripts, and the health analysis flagged the untested demo server.

GIF

Test plan

  • Example builds with Vite against pixi-tiledmap@2.11.0 from npm
  • Example runs in the browser: clicks place bridge tiles at desktop and at 375 px width
  • Exported level-edited.tmj contains exactly the four Bridge tiles at (7..10, 6) and opens cleanly in Tiled
  • npm run check and npm run fallow:gate pass
  • After merge: StackBlitz link and dev.to embed load examples/tiled-roundtrip from master

🤖 Generated with Claude Code

riebel and others added 2 commits September 27, 2026 23:39
The example loads a Tiled map, builds a bridge with four setTile clicks,
and exports the edited map as Tiled JSON that opens in Tiled again. It
depends on the published package instead of the workspace, so StackBlitz
can run it straight from the repository, and the page scales down to
narrow previews such as an embed in an article.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the draft article with its GIF and cover image, and the scripts that
record them. Headless Chrome clicks the real demo and saves the actual
export. Tiled is captured with that exported file open, and compose.py
builds the GIF from those captures. The map sits at the same pixel
position in both tools, so each crossfade changes only the tool around
the map.

Fallow now ignores assets/: these are one-off recording scripts, not
library code, and the health analysis flagged the untested demo server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riebel
riebel merged commit 62ad2b3 into master Sep 27, 2026
5 checks passed
@riebel
riebel deleted the devto-roundtrip branch September 27, 2026 21:47
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