Skip to content

Sync current scene with URL hash#80

Merged
jgbourque merged 1 commit intomainfrom
wjt/web-deep-link
Feb 11, 2026
Merged

Sync current scene with URL hash#80
jgbourque merged 1 commit intomainfrom
wjt/web-deep-link

Conversation

@wjt
Copy link
Member

@wjt wjt commented Feb 11, 2026

Currently there is only one playable scene in the game, but the learning team would like to add another playable scene that has a number of deliberate gameplay bugs. Learners will playtest that scene and identify bugs and/or game design problems.

In order to have a stable link to this deliberately-broken scene, add the ability to deep-link to a scene via the URL hash. This is derived from the code I previously wrote for the same functionality first in Candy Collective, then in Threadbare.

Each time I write it, I think: wouldn't this be a nice addon? But I can never quite make it generic enough.

@wjt wjt requested a review from a team as a code owner February 11, 2026 17:02
@github-actions
Copy link

Play this branch at https://endlessm.github.io/moddable-platformer/branches/endlessm/wjt/web-deep-link.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Currently there is only one playable scene in the game, but the learning team
would like to add another playable scene that has a number of deliberate
gameplay bugs. Learners will playtest that scene and identify bugs and/or game
design problems.

In order to have a stable link to this deliberately-broken scene, add the
ability to deep-link to a scene via the URL hash. This is derived from the code
I previously wrote for the same functionality first in Candy Collective, then in
Threadbare.

Each time I write it, I think: wouldn't this be a nice addon? But I can never
quite make it generic enough.
@wjt wjt force-pushed the wjt/web-deep-link branch from 318c8e5 to 0dbd993 Compare February 11, 2026 17:07
@wjt
Copy link
Member Author

wjt commented Feb 11, 2026

There is no level-switching in game, and no alternative playable scene (yet), but you can e.g. "play" the coin scene: https://endlessm.github.io/moddable-platformer/branches/endlessm/wjt/web-deep-link/#components/coin/coin

@wjt
Copy link
Member Author

wjt commented Feb 11, 2026

Something I implemented here but not in Threadbare is that res://main.tscn is simplified to nothing. res://cool_broken_level.tscn is simplified to #cool_broken_level in the URL (as in Threadbare).

@jgbourque jgbourque merged commit 6ccd444 into main Feb 11, 2026
4 checks passed
@jgbourque jgbourque deleted the wjt/web-deep-link branch February 11, 2026 17:21
wjt added a commit that referenced this pull request Feb 11, 2026
Made a copy of the main scene that has some significant bugs in it. This
is for exploring QA and Playtesting in Explore: Threadbare.

The deep link functionality from #80 will be used to give learners a
link directly to this scene. It is not otherwise accessible in-game.

---------

Co-authored-by: Will Thompson <wjt@endlessaccess.org>
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