- Added multiplayer functions

- Only active user can roll the dice
- Only active user can select answers
- Card will be destroyed if active user selects answer
This commit is contained in:
2021-06-10 14:05:01 +02:00
parent d47ca1be66
commit c4a8c84db2
4 changed files with 78 additions and 33 deletions

View File

@@ -56,13 +56,6 @@ function Button(default_color, hover_color, select_color, width, height, x, y, t
this.graphics.buttonMode = true;
this.graphics.defaultCursor = 'pointer';
this.graphics.on('click', function () {
if (_this.button_is_answer) {
if (_this.selected === true) {
_this.unSelectButton();
} else {
_this.selectButton();
}
}
click();
});
this.graphics.on('mouseover', function () {