Saturday, November 16, 2019

Project 3 Day 9

I fixed an issue of when the down note was playing too long by creating a variable that keeps track of the history of when the down button is pressed. When it is pressed the down variable is set to true meaning the key was pressed and when it is true it plays the note.

There was also an issue with our spacebar command. The issue was that if there were blocks such as the L blocks and the I block at a specific position then a box from that block would go out of the grid. To fix it I created a function to predict when that specific box would go out of bounds, and if it does then it means the block has to move up a bit.

No comments:

Post a Comment