Welcome to the game of Snake!
w
- move ups
- move downa
- move leftd
- move rightx
- quit game
- First map:
- Second map:
- Third map:
- Forth map:
- Fifth map:
In .txt
files we store information about field parameters such as field size, walls transparency and etc.
x
y
- field sizes, firstly comes x, then ywalls
- parameter which determines if snake will go through edge wallsx_head
y_head
- initial direction of snake, firstly comes x axis, then y axissize
- initial snake sizePoint[size]
- an array of snake points, starting with tail and ending with head, each point starts with x coordinate and ends with y coordinatefield[y][x]
- an array which determines field space such as walls
If you find any issue - please create issue at issues tab! Also if you want to see your map in the game - create pull request and we will think about adding it to the game.