/snake-clone

simple snake clone using ncurses and lua

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

snake clone
a simple clone of snake running in the terminal via ncurses and coded in lua.

installation

before running the game for the first time, run the make file located in libs/ncurses to compile the shared C library which is used for ncurses functionality.

cd libs/ncurses 
make 

controls

  • 'w' move up
  • 'a' move left
  • 's' move down
  • 'd' move right

screenshots

screenshot1
screenshot2

requirements

  • lua >= 5.4
  • ncurses
  • make (or alternatively you can compile the C library manually.)
  • gcc (or you can use a different C compiler of your choice. you will need to change this in the make file.)
  • ncurses compatible terminal

libraries used