diff --git a/public_html/js/class.js b/public_html/js/class.js index 67d5642..d3cfb6e 100644 --- a/public_html/js/class.js +++ b/public_html/js/class.js @@ -8,11 +8,12 @@ const defaulthealth=10; class Player { - constructor (id,x,y,name,dir) + constructor (id,x,y,z,name,dir) { this.name=name; this.x=x; this.y=y; + this.z=z; //this.z=z;//correspond to the map. Ex: 0=>main; 1=>arena this.id=id; this.visibleDir=1;