{"id":21871084,"url":"https://github.com/isaka-james/gemu-la-nyoka","last_synced_at":"2025-03-21T22:23:56.568Z","repository":{"id":251770875,"uuid":"838389435","full_name":"isaka-james/gemu-la-nyoka","owner":"isaka-james","description":"Game of Snake written in Rust","archived":false,"fork":false,"pushed_at":"2024-09-04T10:11:13.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T16:47:26.754Z","etag":null,"topics":["game","piston-window","rand","rust","snake","snake-game"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/isaka-james.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-08-05T14:40:09.000Z","updated_at":"2024-09-04T10:11:17.000Z","dependencies_parsed_at":"2024-08-05T17:22:29.205Z","dependency_job_id":null,"html_url":"https://github.com/isaka-james/gemu-la-nyoka","commit_stats":null,"previous_names":["isaka-james/gemu-la-nyoka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fgemu-la-nyoka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fgemu-la-nyoka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fgemu-la-nyoka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fgemu-la-nyoka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaka-james","download_url":"https://codeload.github.com/isaka-james/gemu-la-nyoka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244876455,"owners_count":20524854,"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":["game","piston-window","rand","rust","snake","snake-game"],"created_at":"2024-11-28T06:13:22.186Z","updated_at":"2025-03-21T22:23:56.542Z","avatar_url":"https://github.com/isaka-james.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gemu La Nyoka\n\n\u003cp\u003e\n  \u003cimg src=\"https://komarev.com/ghpvc/?username=isaka-nyoka\u0026label=Nyoka%20Game\u0026color=0e75b6\u0026style=flat\" alt=\"since 04 Sep,2024\" /\u003e\n\u003c/p\u003e\n\n**Gemu La Nyoka** is a classic snake game implemented in Rust. The goal is to guide the snake to eat food, grow longer, and avoid colliding with itself or the walls. This project demonstrates basic game development principles using Rust.\n\n## Features\n- [x] - Simple and intuitive controls\n- [x]  Incremental difficulty with growing snake\n- [x]  Fun and engaging gameplay\n- [ ] Score tracking\n\n## Screenshots\n\n![image](https://github.com/user-attachments/assets/eba4c7dc-7027-49b4-bb08-62b8e2e7752a)\n\n## Getting Started\n\n### Prerequisites\n\n- Rust (latest stable version)\n- Cargo (Rust package manager)\n\n### Installation\n\n1. Clone the repository:\n\n```sh\ngit clone https://github.com/isaka-james/gemu-la-nyoka.git\n```\n\n2. Navigate to the project directory:\n\n```sh\ncd gemu-la-nyoka\n```\n\n3. Build the project:\n\n```sh\ncargo build\n```\n\n4. Run the game:\n\n```sh\ncargo run\n```\n\n## Controls\n\n- **Arrow Keys**: Move the snake\n- **ESC**: Exit the game\n\n## Code Structure\n\n- `src/main.rs`: The main entry point for the game\n- `src/game.rs`: Contains the game logic and mechanics\n- `src/snake.rs`: Handles the snake's movement and growth\n- `src/draw.rs`: Functions for drawing game elements on the screen\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request for any improvements or new features.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## Acknowledgments\n\n- Rust community for excellent resources and support\n- [Piston Window](https://github.com/PistonDevelopers/piston_window) for the windowing and graphics library\n- [rand](https://github.com/rust-random/rand) for random number generation library\n- Project inspired by [tensor](https://www.youtube.com/@TensorProgramming)\n\n## Contact\n\nIsaka James - [GitHub](https://github.com/isaka-james)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fgemu-la-nyoka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaka-james%2Fgemu-la-nyoka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fgemu-la-nyoka/lists"}