In Snake3D you can play snake on the surface of a 3d-cube.
→ two gamemodes:
- normal(like the old snake, but on a cube)
- 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.)
- Download the source code here on github.
- Extract the .zip file.
- 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.
Press run in your IDE OR type java main
in your terminal
Go to releases and download any version of Snake3D. Double click the .jar file and you are good to go.
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 →
If you find something you can make better, feel free to make a pull request(Thank you in advance). I would like it if you would try to roughly follow the syntax and commentation density I used in the code, but I won't reject your PR if you don't.
If you want to support me, but don't know what to make better in my code, there are some comments containing a TODO
note.