Created
August 13, 2018 17:46
-
-
Save MikeShi42/409ffee18e3e7ef137b0f80ef7e6f2f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GameManager { | |
constructor(socket, remotePlayer, size, InputManager, Actuator, StorageManager) { | |
... | |
this.startTiles = 2; | |
// We’ll be deleting these 3 lines | |
this.inputManager.on("move", this.move.bind(this)); | |
this.inputManager.on("restart", this.restart.bind(this)); | |
this.inputManager.on("keepPlaying", this.keepPlaying.bind(this)); | |
this.remotePlayer = remotePlayer; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment