aboutsummaryrefslogtreecommitdiffstats
path: root/js/perso.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-05 23:06:29 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-05 23:09:21 +0200
commitf171811a44364f605712aff1ca0808bfe570ef6e (patch)
treea970a69853e19ef43d97c2f48d61a6fb34637ff6 /js/perso.js
parent1efc4a15c8ab913bf8bdb1aef9f3b5720b3b7762 (diff)
downloadcandybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.gz
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.bz2
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.xz
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.zip
add xp system and perso server side
Diffstat (limited to 'js/perso.js')
-rw-r--r--js/perso.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/perso.js b/js/perso.js
new file mode 100644
index 0000000..365cf54
--- /dev/null
+++ b/js/perso.js
@@ -0,0 +1,5 @@
+function displayPerso(hp,xp,lv){
+ document.getElementById("hp").innerHTML = hp;
+ document.getElementById("lv").innerHTML = lv;
+ document.getElementById("xp").innerHTML = xp;
+}