Snake 3D

Slither through a neon 3D grid, consuming energy cubes to grow while avoiding the walls and your own tail.

What this code does

- 3D Grid Arena: The game takes place on a finite 3D grid with neon boundaries.
- Growth Mechanics: Every energy cube consumed adds a segment to the snake's tail.
- Dynamic Camera: The camera follows the snake's head with a slight lag for a cinematic feel.
- Controls: Keyboard (Arrow Keys) for 2D direction; speed increases as you grow.
- GameOver: Colliding with the grid boundaries or the snake's own body resets the game.