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
- Host: GitHub
- URL: https://github.com/patrickm663/snake-game
- Owner: patrickm663
- License: apache-2.0
- Created: 2022-08-14T14:51:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T17:56:24.000Z (almost 4 years ago)
- Last Synced: 2025-06-28T02:02:03.676Z (12 months ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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