From adf046987cee062baadf36283ddd6ac76391c0f8 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Fri, 5 Jun 2015 23:54:54 +0200 Subject: [PATCH] Score support --- client | 2 +- script.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client b/client index c1a834d..6b0ac69 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit c1a834d8e66193eb6bc60951dc784ea9ca20906b +Subproject commit 6b0ac699fc4cc97f8815397d82c9d1db99949bde diff --git a/script.js b/script.js index c7f4aa8..2c28c59 100644 --- a/script.js +++ b/script.js @@ -273,6 +273,10 @@ function Controller(client) { this.cellgui.add(this, 'nick'); this.cellgui.add(this, 'spawn'); this.cellgui.add(this, 'autoRespawn'); + var scoreGui = this.cellgui.add(this.client, 'score').listen(); + this.client.on('scoreUpdate', function() { + scoreGui.updateDisplay(); + }); this.leadergui = this.gui.addFolder('Leaderboard'); this.leaders = {};