Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 2, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2f64aa1a9cd83715587eb0eb92654302 to your computer and use it in GitHub Desktop.
Save parzibyte/2f64aa1a9cd83715587eb0eb92654302 to your computer and use it in GitHub Desktop.
constructor(canvasId) {
this.canvasId = canvasId;
this.timeoutFlag = false;
this.board = [];
this.existingPieces = [];
this.globalX = 0;
this.globalY = 0;
this.paused = true;
this.currentFigure = null;
this.sounds = {};
this.canPlay = false;
this.intervalId = null;
this.init();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment