first of many...

This commit is contained in:
Victor Lasserre 2023-12-11 14:50:20 +01:00
parent 3b939ae37e
commit 1ef94e22df

View file

@ -8,11 +8,12 @@ const defaulthealth=10;
class Player class Player
{ {
constructor (id,x,y,name,dir) constructor (id,x,y,z,name,dir)
{ {
this.name=name; this.name=name;
this.x=x; this.x=x;
this.y=y; this.y=y;
this.z=z;
//this.z=z;//correspond to the map. Ex: 0=>main; 1=>arena //this.z=z;//correspond to the map. Ex: 0=>main; 1=>arena
this.id=id; this.id=id;
this.visibleDir=1; this.visibleDir=1;