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.
This commit is contained in:
parent
1f2b33baec
commit
2448fef53a
6 changed files with 66 additions and 42 deletions
|
@ -45,12 +45,6 @@ export class Player extends PlayableCaracter implements CurrentGamerInterface, G
|
|||
this.setImmovable(false);
|
||||
this.initAnimation();
|
||||
|
||||
console.warn("Start direction for added player ", direction)
|
||||
console.warn("Position ", x, y)
|
||||
/*this.play(`${PlayerTexture}-${direction}`, true);
|
||||
if (!moving) {
|
||||
this.stop();
|
||||
}*/
|
||||
this.playAnimation(direction, moving);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue