Skip to content

Instantly share code, notes, and snippets.

@MikeShi42
Created August 13, 2018 17:46
Show Gist options
  • Save MikeShi42/409ffee18e3e7ef137b0f80ef7e6f2f3 to your computer and use it in GitHub Desktop.
Save MikeShi42/409ffee18e3e7ef137b0f80ef7e6f2f3 to your computer and use it in GitHub Desktop.
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