saanp.vi
I developed this simple Snake Game using the SDL2 library in C.
I was inspired by a video on the CS50 YouTube channel, which demonstrated 2D Games in C using SDL.
The name saanp.vi
(with 'saanp' meaning 'snake') playfully describes the snake-like behavior of my friends, while 'vi' refers to the Vim keybindings used for controls.
- SDL2
- C Compiler (gcc, g++ etc.)
Clone the repository
git clone git@github.com:iamsampang/saanp.vi.git
Navitage to the project directory
cd saanp.vi
Build the game using make
make
Run the game
./main.bin
KEY | ACTION |
---|---|
i |
start game |
h |
move left |
j |
move down |
k |
move up |
l |
move right |
esc |
quit the game |