This project implements the classic Snake game in C++ with enhanced smooth rendering using multithreading. It also includes FPS (frames per second) display for real-time performance monitoring.
- Classic Snake game with a modern twist
- Multithreaded rendering for smooth gameplay
- Real-time FPS display
- Adjustable difficulty levels
- A C++ compiler (e.g., g++, clang++)
- Windows OS (due to dependency on
<conio.h>
and<windows.h>
) - Make sure you have
g++
installed and added to your system's PATH
- Clone the repository:
git clone https://github.com/Zikithezikit/snake-cpp cd snake-cpp
- Compile the code:
g++ -o snake_game main.cpp
- Run the game:
.\snake_game.exe
- Follow on-screen instructions to enter your name and select the difficulty level.
-
W
: Move Up -
A
: Move Left -
S
: Move Down -
D
: Move Right -
X
: Exit Game