{"id":15652036,"url":"https://github.com/caohuilin/snake_react_v2","last_synced_at":"2025-04-30T20:06:43.785Z","repository":{"id":82416484,"uuid":"107131853","full_name":"caohuilin/Snake_React_v2","owner":"caohuilin","description":"React-Redux-Typescript-Immutable实现贪吃蛇小游戏","archived":false,"fork":false,"pushed_at":"2017-11-28T07:57:00.000Z","size":1101,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-30T20:06:32.735Z","etag":null,"topics":["game","immutablejs","react","redux","snake-game","typescript"],"latest_commit_sha":null,"homepage":"https://caohuilin.github.io/Snake_React_v2/","language":"TypeScript","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/caohuilin.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":"2017-10-16T13:33:35.000Z","updated_at":"2023-03-08T02:59:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d754b65-c9da-4a45-ad1b-897362673724","html_url":"https://github.com/caohuilin/Snake_React_v2","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/caohuilin%2FSnake_React_v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caohuilin%2FSnake_React_v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caohuilin%2FSnake_React_v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caohuilin%2FSnake_React_v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caohuilin","download_url":"https://codeload.github.com/caohuilin/Snake_React_v2/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774894,"owners_count":21641731,"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","immutablejs","react","redux","snake-game","typescript"],"created_at":"2024-10-03T12:41:04.172Z","updated_at":"2025-04-30T20:06:43.762Z","avatar_url":"https://github.com/caohuilin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 贪吃蛇小游戏（第二版）\n![home](https://raw.githubusercontent.com/caohuilin/Snake_React_v2/develop/title.jpg)\n\n2015年，React诞生不久，想着它组件的生命周期管理可以用来写小游戏，于是贪吃蛇小游戏V1版本诞生了 https://github.com/caohuilin/Snake_React ，现在还记得当时完成的兴奋和喜悦。\n\n后来，学习了Redux， Immutable，一直想重新写一下这个项目。\n苦于一直忙于工作，没有空。\n近期终于有空更新项目，于是V2就来了 https://caohuilin.github.io/Snake_React_v2\n\n## 概述\n\nReact生态圈技术实现网页版贪吃蛇小游戏。模拟游戏机界面，传统的游戏模式，找回小时候的回忆！\n\n## 游戏规则\n\n贪吃蛇大家都不陌生了，吃掉一个食物，蛇的身体会变长，食物随机出现在屏幕的另一个位置。碰到自己或者碰到墙壁游戏结束。\n注意一点就是设置目前只支持游戏模式的设置。\n点击设置按钮后，点击左键或者右键进行模式切换。\n\n## 项目安装部署\n\n### Install\n\n```\nyarn install\n```\n\n### Start Serve\n\nIt's served in http://localhost:3000 .\n```\nyarn run serve\n```\n\n### Build\n\n```\nyarn run build\n```\n\n## 试玩\n\nhttps://caohuilin.github.io/Snake_React_v2\n\n![game](https://raw.githubusercontent.com/caohuilin/Snake_React_v2/develop/game.png)\n\n## 补充\n\n基本功能已经实现，难免有处理不当或者没有考虑到的界限问题，欢迎提Issue，https://github.com/caohuilin/Snake_React_v2\n祝大家玩的愉快！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaohuilin%2Fsnake_react_v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaohuilin%2Fsnake_react_v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaohuilin%2Fsnake_react_v2/lists"}