{"id":20748955,"url":"https://github.com/rhaeguard/snake","last_synced_at":"2025-06-20T23:08:02.550Z","repository":{"id":199362484,"uuid":"702720521","full_name":"rhaeguard/snake","owner":"rhaeguard","description":"retro snake game","archived":false,"fork":false,"pushed_at":"2025-04-08T06:53:58.000Z","size":2568,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T23:07:17.425Z","etag":null,"topics":["game-development","golang","procedural-generation","raylib","raylib-go","snake-game"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rhaeguard.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,"zenodo":null}},"created_at":"2023-10-09T21:52:56.000Z","updated_at":"2025-04-08T06:54:02.000Z","dependencies_parsed_at":"2023-11-06T08:32:31.888Z","dependency_job_id":"9705ec93-c687-4072-9353-11855c449b1b","html_url":"https://github.com/rhaeguard/snake","commit_stats":null,"previous_names":["rhaeguard/snake"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rhaeguard/snake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaeguard%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaeguard%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaeguard%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaeguard%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhaeguard","download_url":"https://codeload.github.com/rhaeguard/snake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhaeguard%2Fsnake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261032097,"owners_count":23100050,"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-development","golang","procedural-generation","raylib","raylib-go","snake-game"],"created_at":"2024-11-17T08:19:43.672Z","updated_at":"2025-06-20T23:07:57.536Z","avatar_url":"https://github.com/rhaeguard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# retro-style snake game \r\n\r\nwritten in [raylib](https://github.com/raysan5/raylib) (using [raylib-go](https://github.com/gen2brain/raylib-go))\r\n\r\nthe gameplay\r\n\r\nhttps://github.com/user-attachments/assets/e437530c-a5b4-4204-b25a-6a67be830c45\r\n\r\n- for each game, a new map is procedurally generated using [Wave Function Collapse](https://robertheaton.com/2018/12/17/wavefunction-collapse-algorithm/) algorithm.\r\n\r\n## build \u0026 run\r\n\r\n```sh\r\n# in the project root\r\n# to build:\r\ngo build -o bin\\ -ldflags \"-H=windowsgui -s -w\" .\r\n# to run\r\ngo run .\r\n```\r\n\r\nThere's a Windows executable file already in the [`bin`](./bin/) folder. \r\n\r\n## todo\r\n\r\n- [x] basic movement mechanics\r\n- [x] eating food grows the snake\r\n- [x] hitting border kills\r\n- [x] eating self kills\r\n- [x] ephemeral food\r\n- [x] display:\r\n  - [x] difficulty\r\n  - [x] score\r\n  - [x] max score\r\n  - [x] game title\r\n- [x] intro menu\r\n  - [x] current high score\r\n  - [x] difficulty (slug, worm, python)\r\n  - [x] game logo?\r\n- [x] procedurally generated map\r\n- [ ] different types of items\r\n  - [ ] poison\r\n- [ ] music?\r\n\r\nReference image used so far (credit: https://metro.co.uk):\r\n\r\n![](https://metro.co.uk/wp-content/uploads/2015/05/snake_mobile.gif)\r\n\r\n## Font\r\n\r\nI am using the Minecraft font which is 100% free, you can find the Minecraft font here: https://www.dafont.com/minecraft.font","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhaeguard%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhaeguard%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhaeguard%2Fsnake/lists"}