A simple 3D snake game available here, where you can use the arrow keys to move your snake. Designed and built for a graphics course at NC State University.
This program was only thoroughly tested in Firefox. The basic mechanics, however, should work in every browser. Running locally, please note that in order to work properly, this program may require CORS to be enabled in the browser. In Google Chrome, this means enabling the "Allow File Access From Files" option.
The source code for this game is licensed under the MIT License. The images are the property of their respective owners, only provided for educational use.
First, make sure you can view the entire game screen. You can use zoom (or scaling) to adjust the game screen to your viewport. As the primary player, you can control the blue snake by using the arrow keys.
This program supports two-player mode. The second player can take control of the AI snake (gray snake) at any time by using the WASD keys. Until then, and after the player is killed and the snake respawns, the snake is controlled by the AI system.
This program tracks and displays both the player's and the AI's (or second player's) score. The score is reset for the respective player when their snake respawns.
In this game, you can transform the view to better fit your playing style. To change the view, you can use the following key combinations:
- k and ; — translate view left and right along view X
- o and l — translate view forward and backward along view Z
- i and p — translate view up and down along view Y
- K and : — rotate view left and right around view Y (yaw)
- O and L — rotate view forward and backward around view X (pitch)
- I and P — rotate view clockwise and counterclockwise around view Z (roll)
This program was originally written for the Computer Graphics (CSC 461) course at NC State University. The project description was provided by Professor Benjamin Watson.