Skip to content

This project is a C++ graphics application built to demonstrate how fundamental programming concepts can be combined with visual creativity. Using libraries like SFML/SDL/OpenGL (depending on what you chose), the project showcases interactive graphics, smooth rendering, and real‑time user input handling.

Notifications You must be signed in to change notification settings

anshull-rajput/My-Graphics-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

📊 My Graphic Project (C++ Console Version)

A simple and interactive Snake Game built using C++ for the console. This project demonstrates game loops, keyboard input handling, basic graphics using characters, and real-time movement logic.

✔ Features

🟢 Smooth snake movement

🍎 Random food generation

📈 Score tracking

🚫 Game-over detection

🎮 Real-time keyboard input

✨ Beginner-friendly & clean code

📁 Files

snake.cpp → Main game source code

README.md → Project documentation

▶ How to Compile (Windows / Linux)

Using g++

g++ snake.cpp -o snake

Run the Game

./snake

🎮 How to Play

W → Move Up

S → Move Down

A → Move Left

D → Move Right

🎯 Goal

Eat the food (F or #) to grow your snake. Avoid hitting walls or your own tail!

🧠 Concepts Used

Loops & conditional statements

Arrays / vectors

Random number generation

Functions

Real-time input handling

Basic console rendering

🧩 Game Structure

📦 Snake-Game ├── snake.cpp # Main game logic └── README.md # Project documentation

🚀 Future Enhancements

🌈 Add colors to the board

🧱 Add obstacles

🔊 Add sound effects

🏆 High score saving

🐍 Multiple difficulty levels

👨‍💻 Author

Anshul Rajput

Software Developer | C++ | Python | Data Scientist |

🌐 Connect with Me

⭐ If you like this project, consider giving it a star on GitHub!

About

This project is a C++ graphics application built to demonstrate how fundamental programming concepts can be combined with visual creativity. Using libraries like SFML/SDL/OpenGL (depending on what you chose), the project showcases interactive graphics, smooth rendering, and real‑time user input handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages