Project: threejs
Task (challenging): Create portal.js imported by index.js 1: Create a group named portals. 2: Generate a pair of portal units at the top-right and bottom-left corners of the map, and place them in the portal group. 3: When the snakeHead collides with a portal unit, it will be immediately transported to the coordinates of the other portal.