grudus / Snake

Yes, another snake implementation. But now in Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

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.

How it looks?

screenshot 2017-08-02


screenshot 2017-07-30


screenshot 2017-08-02 1


screenshot 2017-08-02 2


How to add custom map?

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!



How to get?

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!


How to play?

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.

About

Yes, another snake implementation. But now in Kotlin

License:Apache License 2.0


Languages

Language:Kotlin 100.0%