Simple snake game written in Kotlin. Why you should choose it instead of another Snake game? I don't see any reason. Or maybe one fun thing - you can create your own maps.
Firstly, you must to create text file
and fill it with 1 and 0, where 1 means "brick" and 0 means "nothing". For example:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Then, you have to save it with .sn
extension (e.g. mymap.sn
) and save it in config/maps
directory.
Lastly, you must choose your file in game settings (press Enter
).
VoilĂ . You can now play in your very own map!
If you want to play in this super original and innovative game you can download the zip with the latest release.
Or if you want to contribute it itself
git clone https://github.com/grudus/Snake.git
cd Snake
gradle fatJar
cd ./build/libs
java -jar Snake-all-{version}.jar
Remember that config file must be in the same directory as actual game!
UP/W DOWN/S RIGHT/D LEFT/A to move Snake.
Space to temporarily change speed to FAST
ESC to pause
Feel free to contribute.