Adding a notion of instances per mapAdding a notion of instances to room
authorDavid Négrier <d.negrier@thecodingmachine.com>
Sat, 23 May 2020 15:27:49 +0000 (17:27 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Sat, 23 May 2020 15:45:49 +0000 (17:45 +0200)
commit2448fef53af92a6bc853508179639f135ad600b3
tree671227d39b4e3f2c0df8a2d84553c588ab7a78eb
parent1f2b33baec29b36f5b36047c0e2e3191129c3838
Adding a notion of instances per mapAdding a notion of instances to room

The URL signature becomes:

https://workadventu.re/_/[instance]/[path_to_map.json]

This allows us to create many instances of the same map (and therefore to create several different worlds for different people)

An exit on a map can target another "instance" by passing the "exitInstance" property.
README.md
back/src/Controller/MapController.ts
front/src/Phaser/Game/GameManager.ts
front/src/Phaser/Game/GameScene.ts
front/src/Phaser/Login/LogincScene.ts
front/src/Phaser/Player/Player.ts