From 1ef94e22dfd6450dd759e43bf427c6fd9f790684 Mon Sep 17 00:00:00 2001 From: v_lasser Date: Mon, 11 Dec 2023 14:50:20 +0100 Subject: [PATCH] first of many... --- public_html/js/class.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;