Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /** * Represents a player in game */ class Player{ /** * Used to create an instance of a player in the game * * @param {String} avatar The avatar that represents the player * @param {number} score The player's score * @param {boolean} isDrawing Used to determine if the player is currently drawing * @param {String} socketID The player's socket ID (each is unique) */ constructor(avatar, score, isDrawing, socketID){ this.avatar = avatar; this.score = score; this.isDrawing = isDrawing; this.socketID = socketID; } } |