Ten086 / IndepProject

Independent project - Tetris
1 stars 0 forks source link

TPing pieces lol #3

Closed Ten086 closed 6 years ago

Ten086 commented 6 years ago

For some reason the pieces are duplicating and adding themselves to the grid 4 boxes to the right of the original piece, I'm guessing it has something to do with timer issues because this code in actionPerformed in Grid: currentMino = new Tetromino(); currentMino.setInitialPos();

setInitialPos just shifts the mino right 4 boxes, so it looks like the currentMino isn't updating fast enough, but the currentMino updates before it gets shifted so idk