https://github.com/integratedquantum/snake3d
Play snake on a 3d cube
https://github.com/integratedquantum/snake3d
3d-game game java java-game snake-game snake3d
Last synced: 10 months ago
JSON representation
Play snake on a 3d cube
- Host: GitHub
- URL: https://github.com/integratedquantum/snake3d
- Owner: IntegratedQuantum
- License: gpl-3.0
- Created: 2019-07-10T21:01:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T20:29:47.000Z (over 1 year ago)
- Last Synced: 2025-03-18T13:15:10.417Z (10 months ago)
- Topics: 3d-game, game, java, java-game, snake-game, snake3d
- Language: Java
- Homepage:
- Size: 44.9 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake3D
In Snake3D you can play snake on the surface of a 3d-cube.
### Background
At some point in high school [@blackedout01](https://github.com/blackedout01) and I challenged each other to make a 3D snake game over the weekend because we had already mastered the 2D snake game. Even before showing each other the results in class, we talked a bit about our controls and were both left confused. The presentation was quite a surprise. Turns out, we had totally different ideas of what 3D snake actually means. [@blackedout01](https://github.com/blackedout01) made the snake move inside of a cube by extending the game field into the third dimension (you can find his version [here](https://github.com/blackedout01/Snake3D)) and I made the snake move on the surface of a cube:

### Features
→ two gamemodes:
1. normal(like the old snake, but on a cube)
2. hard(like normal + every time you eat a radom border appears somewhere on the cube, so be careful)
→ two levels
→ no external libraries needed(Snake3D has already everything on board it needs.)
### How to build
1. Download the source code here on github.
2. Extract the .zip file.
3. Compile the content of src. This can be done with `javac *.java` in the terminal **OR** by importing the code to any IDE you want and compile it from there.
### How to play
#### Self-compiled:
Press run in your IDE **OR** type `java main` in your terminal
#### Official version:
Go to [releases](https://github.com/IntegratedQuantum/Snake3D/releases) and download any version of Snake3D. Double click the .jar file and you are good to go.
#### Game-play:
You can change game mode/level with `g` and `l` or using your mouse, start the game with `space` or click on `Start`. You can turn the cube with `wasd` and move the snake with `←` and `→`