nipunchamikara / snake

A remake of the popular game, Snake using Lua with LÖVE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

Snake is the common name for a video game concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle.

The snake is controlled using the arrow keys (up, down, left, right).

The task is to collect 'food' and avoid hitting itself or the surrounding wall. On collecting food, the length of the snake is incremented and score increased.

A rudimentary menu is provided with basic functionality like starting a new game and quiting. Difficulty of the game can be changed. Hitting escape can pause or resume gameplay.

Getting Started

In order to run the game, LÖVE, a framework used to make 2D games in Lua has to be installed into your system by following the link.

During installation, be sure to create a desktop icon as this will make it easier to run LÖVE games.

Running the game

The game can be run by dragging the folder containing the game into the LÖVE desktop icon. It can also be run by using the love bash command, for example:

love <name_of_directory>

Note: the directory must contain the main.lua file

Built With

  • LÖVE - The game framework used
  • Lua - The programming language used

Authors

Acknowledgments

Also, a huge thank you to CS50 for giving me this opportunity to create something that I can call my own.

About

A remake of the popular game, Snake using Lua with LÖVE

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%