Skip to content

proobker/Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implemented in C, featuring smooth gameplay and a console-based interface. This project demonstrates basic game development concepts, including input handling, rendering, and collision detection, in the C programming language.

Game Screenshot

Features

  • Smooth Gameplay: Enjoy responsive and smooth snake movement.
  • Scoring System: Tracks and displays the player's score.
  • Simple Controls: Navigate the snake using the arrow keys or WASD.
  • Dynamic Environment: Random fruit generation and growing snake tail.

Technologies Used

  • Programming Language: C
  • Libraries:
    • conio.h for input handling
    • windows.h for delay (Sleep) function

Installation

Clone the repository:

git clone https://github.com/proobker/Snake_Game.git

Navigate to the project directory:

cd Snake_Game

Compile the source code:

gcc snake_game.c -o snake_game

Run the game:

./snake_game

Usage

  • Use W, A, S, D or arrow keys to move the snake.
  • Collect fruits to grow the snake and increase your score.
  • Avoid running into the walls or the snake's own tail.
  • Press X to quit the game.

Screenshots

Game Screenshot

Contribution

Contributions are welcome! Follow these steps to contribute:

  1. Fork this repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Commit your changes:
    git commit -m "Add feature description"
  4. Push to the branch:
    git push origin feature-name
  5. Create a pull request.

License

This project is licensed under the MIT License.

Contact

For queries or feedback, contact:

Thank you for exploring this repository! We hope this project inspires your game development journey.

About

A simple Beginner level game made using C language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages