Please sign in to comment.
Renderer.js Added shadow block to render Input.js Added Q hotkey for InstaDrop Game.js Shuffled default orientation of a few blocks (Still need to visit) Moved score variables intonewGame() Added BlockHistory and functionality to randomize the blocks better Added ShadowBlock Removed dropBlock(), rotateBlock(), and moveBlock() Created performBlockActions() handles all input and block transformations in one collision detections Implemented scoring (still need to award points for soft and hard drops) BUG Fix: corrected the lockBlock column error. When removing rows, the top row ended up with a reference pointer to a single row, this in turn caused a column to form when a block was added to the row which caused a column to form to the top. Used the .splice(0) method on assignment to copy the rows down. PossibleBug: Inadvertantly created the famous infinity rotation feature
- Loading branch information...
Showing with 186 additions and 131 deletions.
Oops, something went wrong.