{"id":19487272,"url":"https://github.com/g-magdy/snake-game","last_synced_at":"2026-05-16T06:01:39.412Z","repository":{"id":246765696,"uuid":"820473130","full_name":"g-magdy/snake-game","owner":"g-magdy","description":"Your Classic Snake Game, But with a twist: you get bigger and faster 💨🐍","archived":false,"fork":false,"pushed_at":"2024-07-14T08:57:18.000Z","size":956,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T08:17:09.620Z","etag":null,"topics":["arcade","game-2d","oop","raylib"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g-magdy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-26T14:33:37.000Z","updated_at":"2024-07-14T08:57:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a86fd21d-1639-4d62-a5cc-b8b5b4ee99ff","html_url":"https://github.com/g-magdy/snake-game","commit_stats":null,"previous_names":["g-magdy/snake-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-magdy%2Fsnake-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-magdy%2Fsnake-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-magdy%2Fsnake-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-magdy%2Fsnake-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-magdy","download_url":"https://codeload.github.com/g-magdy/snake-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240728760,"owners_count":19848115,"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":["arcade","game-2d","oop","raylib"],"created_at":"2024-11-10T20:44:55.730Z","updated_at":"2026-05-16T06:01:34.355Z","avatar_url":"https://github.com/g-magdy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 Snake Game\n\n![Video Demo](./snake-demo.gif)\n\n## 📝 Overview\n\nThis is your classic arcade Snake game implemented in C++ using the Raylib library and Object-Oriented Programming (OOP) principles. As you know, the snake gets bigger with each bite of food, But did you know that it can get faster too? 😎  \nAnd the speed is reset back when the game ends.\n\n## ✨ Features\n- you can pause the game anytime ⏯\n- Score Counter\n\n## 🎮 Controls\n- **Player:**\n  - Up, Down, Left, Right: `Arrow keys`\n  - Toggle Play/Pause: `P`\n  - Exit: `Esc`\n\n## 📋 Requirements\n\n- C++ compiler (e.g., g++)\n- Raylib library\n\n## 💻 Installation\n\n1. **Clone the Repository:**\n    ```sh\n    git clone https://github.com/g-magdy/snake-game.git\n    cd snake-game\n    ```\n\n2. **Install Raylib:**\n    Follow the instructions on the [Raylib website](https://www.raylib.com/) to install Raylib for your operating system.\n\n3. **Compile the Game:**\n    ```sh\n    make game\n    ```\n\n4. **Run the Game:**\n    ```sh\n    ./game\n    ```\n\n## 📁 Code Structure\n\n- **main.cpp:** Contains the main game loop and initialization code.\n- **Constants.h**  Contains global configuration and constants \n- **Game class** Contains the game logic\n- **Snake class** Draws and moves the snake\n- **Food class** spwans food randomly\n\n## 🤝 Contributing\n\nCurrently, I am the only contributor to this project. However, if you have suggestions or improvements, feel free to fork the repository and create a pull request.\n\n## 📄 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\nEnjoy playing the Snake game 🐍!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-magdy%2Fsnake-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-magdy%2Fsnake-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-magdy%2Fsnake-game/lists"}