named teleporters #105

Closed
opened 6 months ago by utopiah · 2 comments
Owner

Based on https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/teleport working including with interactions, and examples of saving states via URL e.g https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/game-multiple-levels/index.html#L164 considered named teleporters (based on e.g ID) has optional starting points, via query parameters or, more coherent with traditional Web browsing, anchor.

Based on https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/teleport working including with interactions, and examples of saving states via URL e.g https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/game-multiple-levels/index.html#L164 considered named teleporters (based on e.g ID) has optional starting points, via query parameters or, more coherent with traditional Web browsing, anchor.
Poster
Owner

Done as 820457a255

Done as https://git.benetou.fr/utopiah/text-code-xr-engine/commit/820457a255d7fb7e5880ea0dad8db6d7b51adcbc
utopiah closed this issue 6 months ago
Poster
Owner

Note that this is done only when loading, and assumes it does not change after. It could be more interesting to also support more broadly, e.g via window.onhashchange.

It also would not work with https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/game-multiple-levels/index.html#L164 which makes some assumption on hash used for data, probably be better to use query parameters there and keep this, location based on hash (based on teleporter or otherwise) for coherence.

Note that this is done only when loading, and assumes it does not change after. It could be more interesting to also support more broadly, e.g via `window.onhashchange`. It also would not work with https://git.benetou.fr/utopiah/text-code-xr-engine/src/branch/game-multiple-levels/index.html#L164 which makes some assumption on hash used for data, probably be better to use query parameters there and keep this, location based on hash (based on teleporter or otherwise) for coherence.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: utopiah/text-code-xr-engine#105
Loading…
There is no content yet.