{"id":17052586,"url":"https://github.com/cuchi/snek.rs","last_synced_at":"2025-07-16T19:32:44.110Z","repository":{"id":84178634,"uuid":"569887885","full_name":"cuchi/snek.rs","owner":"cuchi","description":"Small snake game written in Rust + SDL2","archived":false,"fork":false,"pushed_at":"2022-11-23T21:49:38.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T11:48:28.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cuchi.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":"2022-11-23T21:06:24.000Z","updated_at":"2022-11-24T13:23:04.000Z","dependencies_parsed_at":"2023-05-31T06:37:59.188Z","dependency_job_id":null,"html_url":"https://github.com/cuchi/snek.rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuchi%2Fsnek.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuchi%2Fsnek.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuchi%2Fsnek.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuchi%2Fsnek.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuchi","download_url":"https://codeload.github.com/cuchi/snek.rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245058306,"owners_count":20554101,"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":[],"created_at":"2024-10-14T10:09:50.872Z","updated_at":"2025-03-23T05:21:29.117Z","avatar_url":"https://github.com/cuchi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snek.rs\n\nJust another minimal implementation of the snake game, this time using in Rust + SDL2.\n![Screenshot](./screenshot.png)\n\n# Running \u0026 local development\n1. I tested this with `rustc 1.65.0`, so make sure you have a compatible version.\n2. Also make sure your system has the [SDL2 dev libraries](https://github.com/Rust-SDL2/rust-sdl2#sdl20-development-libraries).\n3. Clone this repo.\n4. `cargo run` it.\n5. **Enjoy!**\n\nKeybindings:\n- **WASD** to move\n- **Escape** to pause/unpause/restart.\n\n# The code\n- [./src/context.rs](./src/context.rs) - Controls the game state and mechanics.\n- [./src/renderer.rs](./src/renderer.rs) - Draws the game state into the sdl canvas.\n- [./src/main.rs](./src/main.rs) - Keybindings + game loop and ticks.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuchi%2Fsnek.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuchi%2Fsnek.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuchi%2Fsnek.rs/lists"}