Project: threejs
Task (challenging): Edit index.js 1: When the user presses the up, down, left, and right keys on the keyboard, the snakeHead is controlled to move to top, bottom, left, and right by one unit respectively. 2: The apex of snakeHead always points in the direction of recent movement. 3: Ensuring that when the user moves the snakeHead, all the snakeBody follows the way closely. 4: All the snake part can not over other self part.