https://github.com/xaxm007/snaked
A simple snake game built in C/C++ using <graphics.h>.
https://github.com/xaxm007/snaked
c-programming computer-graphics cpp-programming graphics-library graphics-programming snake-game
Last synced: 4 months ago
JSON representation
A simple snake game built in C/C++ using <graphics.h>.
- Host: GitHub
- URL: https://github.com/xaxm007/snaked
- Owner: xaxm007
- Created: 2024-09-16T16:12:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T11:56:38.000Z (over 1 year ago)
- Last Synced: 2025-03-13T23:44:24.652Z (about 1 year ago)
- Topics: c-programming, computer-graphics, cpp-programming, graphics-library, graphics-programming, snake-game
- Language: C++
- Homepage:
- Size: 1.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🐍 snaked
- A simple snake game for Computer Graphics project built using C/C++.
- An implementation of graphics programming using graphics.h library.
## 🛠️ Requirements
- `graphics.h` compiler
- `CodeBlocks` IDE (Recommended)
- Refer to the video for [graphics.h setup](https://www.youtube.com/watch?v=VEkAj-xVTKQ) in CodeBlocks on windows.
## 📷 In-Game Snapshots
#### Start:
![alt text]()
![alt text]()
#### Over:
![alt text]()
#### Result:
![alt text]()
**Controls**:
- `↑` = Move Up
- `↓` = Move Down
- `←` = Move Left
- `→` = Move Right
---
## 📋 In-game Instructions:
- Direct the snake (green dot) to the food (yellow dot) using arrow keys.
- 1 food equals 1 point.
- If the snake hit the green boundary then GAME OVER.
- Overall score will be displayed at the end.
## Note:
- Ensure the `graphics.h` library is properly configured in your IDE to run the game.
- Reference: [Codingram](https://www.youtube.com/watch?v=hrWaUxiHuxs)