An open API service indexing awesome lists of open source software.

https://github.com/patrickm663/snake-game

Snake in Lua using LOVE2D
https://github.com/patrickm663/snake-game

Last synced: 11 months ago
JSON representation

Snake in Lua using LOVE2D

Awesome Lists containing this project

README

          

# snake-game

Snake in Lua using LOVE2D. Code and instructions provided by https://simplegametutorials.github.io/love/snake/

The intention is to create a proof-of-concept game from which to build on and explore the use of A.I. to train a snake algorithm.

## Setup
Ensure Lua 5.4.x and LOVE2D are installed.

Clone and enter the repository:
```
git clone https://github.com/patrickm663/snake-game.git
cd snake-game
```

Run the `.lua` files found in `src/` using `love`:
```lua
love src/
```

## How to Play
The snake is controlled by either WASD or directional keys. Eating an apple (marked in red) grows the snake by one segment. If the snake crosses its own path, the snake dies and the game is reset.

## TODO
- [ ] Add sound
- [ ] Add a main menu
- [ ] Add varying difficulties
- [ ] Fix aspect ratio
- [ ] Add levels
- [ ] Add splash screen following win/loss
- [ ] Add scoreboard
- [ ] Add A.I. mode
- [ ] Add two-player mode