{"id":16832697,"url":"https://github.com/zswang/snake","last_synced_at":"2026-01-04T06:08:36.165Z","repository":{"id":145189552,"uuid":"41303887","full_name":"zswang/snake","owner":"zswang","description":"简易贪吃蛇","archived":false,"fork":false,"pushed_at":"2015-08-25T16:54:01.000Z","size":112,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-24T09:09:41.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/zswang.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}},"created_at":"2015-08-24T13:13:37.000Z","updated_at":"2021-11-15T12:17:05.000Z","dependencies_parsed_at":"2023-04-05T06:02:00.656Z","dependency_job_id":null,"html_url":"https://github.com/zswang/snake","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/zswang%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/snake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244135897,"owners_count":20403797,"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-13T11:50:07.030Z","updated_at":"2026-01-04T06:08:31.130Z","avatar_url":"https://github.com/zswang.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snake\n\n简易贪吃蛇\n\n主要是示例 jdists + jfogs + uglify 用法\n\n```js\n/*\u003cjdists encoding=\"jfogs,uglify\" type=\"reverse\"\u003e*/\nfunction Snake(options) {\n    var self = this;\n    options = options || {};\n    this.colCount = options.colCount || 20;\n    this.rowCount = options.rowCount || 20;\n    this.parent = options.parent || document.body; // 容器\n    // ...\n}\n// ...\n/*\u003c/jdists\u003e*/\n```\n\n+ 先对代码做一次 jfogs 混淆\n+ 然后再做一次 uglify 压缩\n\n[线上演示](http://jhtmls.com/snake/)\n\n## 使用\n\n### 安装依赖\n\n```bash\n$ npm install\n```\n\n## 编译\n\n```bash\n$ npm run dist\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Fsnake/lists"}