I am currently working on developing a Tetris game and I have encountered a bug that affects the speed of the game. The issue arises when the function
setInterval(move_tetris_part,interval_time);
is called multiple times, resulting in an increased downward speed than expected.
I have been troubleshooting this problem and it seems to be related to the keydown and keyup functions within the code. I have implemented a variable named job_completed which is set to true at the start of each button press and then switched to false. Only if this variable is false, the corresponding code should be executed.
Insert your specific code snippet here...
Upon further investigation, please ensure to review the logs (console) for any additional insights or errors that may help in identifying and resolving the issue.
Thank you in advance for your assistance,
Chris Pappas