{"id":50519774,"url":"https://github.com/josedasilva11/retro-snake","last_synced_at":"2026-06-03T03:06:43.562Z","repository":{"id":350734220,"uuid":"1208065572","full_name":"josedasilva11/retro-snake","owner":"josedasilva11","description":"Classic Snake arcade game with retro CRT aesthetics, particle effects, power-ups \u0026 procedural sound. Built with vanilla JS + HTML5 Canvas.","archived":false,"fork":false,"pushed_at":"2026-04-11T19:25:41.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-11T21:14:37.770Z","etag":null,"topics":["arcade","game","github-pages","html5-canvas","javascript","responsive","retro","snake-game","vanilla-js","web-audio-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/josedasilva11.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T19:15:11.000Z","updated_at":"2026-04-11T19:25:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/josedasilva11/retro-snake","commit_stats":null,"previous_names":["josedasilva11/retro-snake"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/josedasilva11/retro-snake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fretro-snake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fretro-snake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fretro-snake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fretro-snake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josedasilva11","download_url":"https://codeload.github.com/josedasilva11/retro-snake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josedasilva11%2Fretro-snake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33845817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","github-pages","html5-canvas","javascript","responsive","retro","snake-game","vanilla-js","web-audio-api"],"created_at":"2026-06-03T03:06:42.928Z","updated_at":"2026-06-03T03:06:43.553Z","avatar_url":"https://github.com/josedasilva11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 Retro Snake\n\nA classic Snake arcade game with retro CRT aesthetics, particle effects, power-ups, and procedural sound — built entirely with **vanilla JavaScript** and **HTML5 Canvas**. No frameworks, no dependencies.\n\n| Menu | Gameplay |\n|:----:|:--------:|\n| ![Menu](screenshot.png) | ![Gameplay](screenshot-gameplay.png) |\n\n## 🎮 Play Now\n\n**[▶ Play Retro Snake](https://josedasilva11.github.io/retro-snake/)**\n\n## ✨ Features\n\n- **Retro CRT Aesthetic** — Scanline overlay, neon green glow, pixel font\n- **Smooth Gameplay** — Responsive controls with WASD, Arrow Keys, or touch/swipe on mobile\n- **Particle Effects** — Explosions on food pickup and death\n- **Floating Score Popups** — Visual feedback on every pickup\n- **Bonus Star Power-ups** — Random star items worth 3x points with a timer bar\n- **Progressive Difficulty** — Speed increases as you level up\n- **Procedural Sound Effects** — Retro 8-bit sounds generated with Web Audio API (no audio files needed)\n- **High Score Persistence** — Best score saved to localStorage\n- **Fully Responsive** — Playable on desktop and mobile with on-screen D-pad\n- **Zero Dependencies** — Pure HTML, CSS, and JavaScript\n\n## 🕹️ Controls\n\n| Input | Action |\n|-------|--------|\n| `↑` `↓` `←` `→` | Move snake |\n| `W` `A` `S` `D` | Move snake (alternative) |\n| Swipe | Move snake (mobile) |\n| D-pad buttons | Move snake (mobile) |\n\n## 🏗️ Tech Stack\n\n- **HTML5 Canvas** — Game rendering\n- **Vanilla JavaScript** — Game logic, no frameworks\n- **CSS3** — CRT effects, animations, responsive layout\n- **Web Audio API** — Procedural retro sound effects\n- **localStorage** — High score persistence\n\n## 📁 Project Structure\n\n```\nretro-snake/\n├── index.html    # Game page with overlay UI\n├── style.css     # Retro CRT styling \u0026 responsive layout\n├── game.js       # Complete game engine (~500 lines)\n└── README.md\n```\n\n## 🚀 Run Locally\n\nNo build step needed — just open `index.html` in any modern browser.\n\n```bash\n# Clone the repo\ngit clone https://github.com/josedasilva11/retro-snake.git\ncd retro-snake\n\n# Option 1: Open directly\nopen index.html\n\n# Option 2: Use a local server\nnpx serve .\n```\n\n## 🎯 Game Mechanics\n\n- **Scoring**: Regular food = 10 pts, Bonus star = 30 pts\n- **Levels**: Every 50 points increases the level and speed\n- **Bonus items**: 15% chance to spawn after eating food, disappear after a timer\n- **Game Over**: Hit a wall or yourself\n\n## 📄 License\n\nMIT License — feel free to fork, modify, and use however you like.\n\n---\n\nBuilt by [José Pedro Silva](https://github.com/josedasilva11)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosedasilva11%2Fretro-snake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosedasilva11%2Fretro-snake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosedasilva11%2Fretro-snake/lists"}