https://github.com/zuygui/sfml-snake
The original Snake Game written in C++ with SFML.
https://github.com/zuygui/sfml-snake
Last synced: 12 months ago
JSON representation
The original Snake Game written in C++ with SFML.
- Host: GitHub
- URL: https://github.com/zuygui/sfml-snake
- Owner: zuygui
- License: mit
- Created: 2024-03-05T19:42:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T09:52:36.000Z (over 2 years ago)
- Last Synced: 2025-04-19T19:53:09.078Z (about 1 year ago)
- Language: C++
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# đ Snake SFML
[](LICENSE)
A classic Snake game implemented using SFML library. This project was coded on twitch. Here is a replay:
[](https://www.youtube.com/watch?v=jyDlxqVOZMAs)
## đŽ Gameplay
In this game, you control a snake that moves around the screen and eats food to grow longer. The objective is to avoid colliding with the snake's own body. The game ends when the snake collides with any of these obstacles.
## đ Features
- Simple and intuitive controls
- Randomly generated food for the snake to eat
- Score tracking to keep track of your progress
## đ ī¸ Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/sfml-snake.git
```
2. Build the project using Make:
```bash
cd sfml-snake
mkdir bin
mkdir obj
make
```
3. Run the game:
```bash
./bin/sfml-snake
```
## đšī¸ Controls
- Use the arrow keys to control the snake's movement:
- Up: Move the snake upwards
- Down: Move the snake downwards
- Left: Move the snake to the left
- Right: Move the snake to the right
## đ License
This project is licensed under the [MIT License](LICENSE).
## đ¤ Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
## đ Contact
For any questions or inquiries, feel free to open an issue.