snakeArr.unshift({ x: snakeArr[0].x + inputDir.x, y: snakeArr[0].y + inputDir.y })
This issue has been fixed, I forgot to add CSS class to snake.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)