Score support
This commit is contained in:
parent
e615516aee
commit
adf046987c
2
client
2
client
|
@ -1 +1 @@
|
|||
Subproject commit c1a834d8e66193eb6bc60951dc784ea9ca20906b
|
||||
Subproject commit 6b0ac699fc4cc97f8815397d82c9d1db99949bde
|
|
@ -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 = {};
|
||||
|
|
Reference in a new issue