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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user