I'm trying to make Tetris using javascript.
https://github.com/meth-meth-method/tetris -- I found this on Youtube and started to add some other functions.
I want to add Hard drop key in this Tetris game.
function playerDrop() {
player.pos.y++;
if (collide(arena, player)) {
player.pos.y--;
merge(arena, player);
playerReset();
arenaSweep();
updateScore();
}
dropCounter = 0;
}
This is just normal drop function. How to make a hard drop function out of it?