{"id":28075248,"url":"https://github.com/fancellu/snake-ebitengine","last_synced_at":"2025-05-16T03:10:42.423Z","repository":{"id":292743473,"uuid":"981709534","full_name":"fancellu/snake-ebitengine","owner":"fancellu","description":"The classic Snake game written in Go. Using Ebitengine","archived":false,"fork":false,"pushed_at":"2025-05-12T13:37:33.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T00:55:33.271Z","etag":null,"topics":["ebitengine","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fancellu.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,"zenodo":null}},"created_at":"2025-05-11T18:07:38.000Z","updated_at":"2025-05-12T13:37:36.000Z","dependencies_parsed_at":"2025-05-11T23:32:24.434Z","dependency_job_id":null,"html_url":"https://github.com/fancellu/snake-ebitengine","commit_stats":null,"previous_names":["fancellu/snake-ebitengine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsnake-ebitengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsnake-ebitengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsnake-ebitengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancellu%2Fsnake-ebitengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fancellu","download_url":"https://codeload.github.com/fancellu/snake-ebitengine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850890,"owners_count":21973672,"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":["ebitengine","golang"],"created_at":"2025-05-13T00:55:38.256Z","updated_at":"2025-05-13T00:55:38.767Z","avatar_url":"https://github.com/fancellu.png","language":"Go","readme":"# Go Snake Game\n\nA classic Snake game implementation written in Go and [Ebitengine](https://ebitengine.org/), featuring sound effects, particle systems, and progressive difficulty.\n\nMostly created as a good way to play with Golang and to add another Ebitengine example\n\nMajority of the work in a weekend after discovering ebitengine\n\nI am strong believer in monkey see, monkey do\n\n## Description\n\nThis is a modern take on the classic Snake game where players control a snake that grows longer as it consumes food. \n\n## How to Play\n\n### Controls\n- Use arrow keys to control the snake's direction\n- Guide the snake to eat the food items that appear on the screen\n- Avoid hitting the walls or the snake's own body\n- Press p to pause the game and resume it at any time\n- Press m to toggle sound effects on and off\n- Press Spacebar to fire snake tongue\n- When gameover, press Spacebar to restart\n- UI buttons for new game, mute and pause\n\n### Game Mechanics\n- The snake grows longer each time it eats food (caps at 40 segments)\n- Eat the food to gain 2 points, or use tongue to do it more quickly for 1 points\n- The game speed increases with each food item eaten, making it progressively more challenging\n- Food items may randomly disappear, adding an extra challenge\n- Game ends if the snake collides with walls or itself\n\n### Features\n- Smooth snake movement\n- Visual particle effects\n- Sound effects for:\n- Food collection\n- Game over events\n- Progressive difficulty (snake speeds up as it eats)\n- Random food disappearance mechanics\n\n## To run\n\n1. Ensure you have Go installed on your system\n2. Clone the repository\n3. Run the following commands:\n```bash\ngo mod tidy\ngo run .\n```\n\n## To run on web via wasm\n\n[Click here to Preview](https://acid.seedhost.eu/seedbod/snake)\n\n## To build for web\n\nSet env vars\n```\nGOARCH=wasm GOOS=js go build -o main.wasm\n```\n\nCreates a `main.wasm` file, copy to web server along with `index.html` and `wasm_exec.js`\n\nNote, your web server should support correct mime type for wasm i.e.  'application/wasm', or it won't load\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancellu%2Fsnake-ebitengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancellu%2Fsnake-ebitengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancellu%2Fsnake-ebitengine/lists"}