Skip to content

iambasantarai/saanp.vi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Project setup

Prerequisites

  • SDL2
  • C Compiler (gcc, g++ etc.)

Getting Started

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

Controls

KEY ACTION
i start game
h move left
j move down
k move up
l move right
esc quit the game