The game uses my simple cursor manipulation library and scales with terminal resolution.
requires jlib - download it manually or run the getjlib python script jlib included with v1.2 for added convenience
- you can get a precompiled binary(executable) file for your system in the releases tab
- linux: cd into the downloaded repo folder and type: gcc snake.c jlib/src/linux.c -o snake
- windows: install microsoft visual studio and add snake.c jlib.h and windows.c to your project, then build
- cmake support added !!
- for some compilers such as mingw you need to edit the CMakeLists.txt of jlib
- works with different resolutions
- low res example running in cool retro term
- works even on windows!
- w - up
- s - down
- a - left
- d - right
- p - pause
- q - quit
- the speed increase value (when snake eats food) should be changed to a more fun value (this can be edited in the detect collision function)
- you cannot resize your game when it's running - it will mess up the screen