{"id":19965482,"url":"https://github.com/rafaykhattak/snake-cpp","last_synced_at":"2025-09-19T17:31:08.367Z","repository":{"id":174457584,"uuid":"652274698","full_name":"RafayKhattak/snake-cpp","owner":"RafayKhattak","description":"Snake Game is a classic implementation of the popular Snake game in C++ using the Raylib library. ","archived":false,"fork":false,"pushed_at":"2023-06-12T07:32:29.000Z","size":1616,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T02:32:19.716Z","etag":null,"topics":["cpp","oop","oops-in-cpp","raylib","raylib-cpp","snake-game"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RafayKhattak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-11T16:28:53.000Z","updated_at":"2024-03-11T08:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9706c2e-d88d-4f36-98e2-2785afe8c32a","html_url":"https://github.com/RafayKhattak/snake-cpp","commit_stats":null,"previous_names":["rafaykhattak/snake-cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafayKhattak%2Fsnake-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafayKhattak%2Fsnake-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafayKhattak%2Fsnake-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RafayKhattak%2Fsnake-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RafayKhattak","download_url":"https://codeload.github.com/RafayKhattak/snake-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233581132,"owners_count":18697588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","oop","oops-in-cpp","raylib","raylib-cpp","snake-game"],"created_at":"2024-11-13T02:28:55.930Z","updated_at":"2025-09-19T17:31:02.822Z","avatar_url":"https://github.com/RafayKhattak.png","language":"C","readme":"# Snake Game\n\nThis is a classic Snake Game implementation in C++ using the Raylib library. The game allows the player to control a snake and navigate it on a grid to eat food and grow longer. The objective is to achieve the highest score possible without colliding with the walls or the snake's own body.\n![imgonline-com-ua-twotoone-9IDzz9VA7ZOUCAOY](https://github.com/RafayKhattak/snake-cpp/assets/90026724/48fa982e-0ea1-4d14-958a-7452b7e701d6)\n## Features\n- Responsive and intuitive controls: Use the arrow keys to navigate the snake on the grid.\n- Random food placement: The food is placed randomly on the grid each time it is consumed.\n- Score tracking: Keep track of the current score and the highest score achieved.\n- Sound effects: Enjoy audio feedback with sound effects for eating food, hitting the wall, and moving the snake.\n- High score persistence: The highest score is saved to a file and loaded when the game is launched.\n## Requirements\n- C++ compiler (supporting C++11 or later)\n- Raylib library installed in C Drive\n## Installation\n1. Clone the repository:\n```shell\ngit clone https://github.com/your-username/snake-cpp.git\n```\n2. Build the game using your C++ compiler (.exe already available in build folder)\n3. Run the executable available in the build folder\n## Contributing\nContributions are welcome! If you would like to contribute to this project, please follow these steps:\n- Fork the repository.\n- Create a new branch.\n- Make your changes and commit them.\n- Push your changes to your forked repository.\n- Submit a pull request.\n## Acknowledgments\n- The Raylib library for providing an easy-to-use framework for game development.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaykhattak%2Fsnake-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaykhattak%2Fsnake-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaykhattak%2Fsnake-cpp/lists"}