{"id":16095938,"url":"https://github.com/joakin/cnake","last_synced_at":"2025-03-18T07:30:21.892Z","repository":{"id":13653168,"uuid":"16346672","full_name":"joakin/cnake","owner":"joakin","description":"A clojurescript canvas snake game","archived":false,"fork":false,"pushed_at":"2015-12-26T13:54:34.000Z","size":155,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T07:51:51.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/joakin.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":"2014-01-29T14:14:38.000Z","updated_at":"2020-06-04T19:14:23.000Z","dependencies_parsed_at":"2022-09-17T20:51:27.107Z","dependency_job_id":null,"html_url":"https://github.com/joakin/cnake","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/joakin%2Fcnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakin","download_url":"https://codeload.github.com/joakin/cnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910417,"owners_count":20367537,"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-09T17:09:40.657Z","updated_at":"2025-03-18T07:30:21.488Z","avatar_url":"https://github.com/joakin.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cnake\n## A snake game implementation in clojurescript\n\n[Demo](http://joakin.github.io/cnake)\n\nThis is a snake game implementation written in clojurescript using canvas.\n\nIt uses core.async for coordination and the code is divided in two parts, the UI and the game logic.\n\nThe code is fairly commented.\n\n## Dev\n\nTo compile and execute in development use the file `dev.html` and compile using `lein cljsbuild auto cnake`.\n\nI developed this using lighttable connecting to an external tab. For connecting lighttable to the page you have to `Ctrl-Space` and write `Add Connection` and then choose `Ports`. Copy the websocket port number and paste it on the html file substituting the one that is already there. Lighttable changes port every time it is started, so change it every time you restart it.\n\n```html\n\u003cscript type='text/javascript' id='lt_ws'\nsrc='http://localhost:49850/socket.io/lighttable/ws.js'\u003e\u003c/script\u003e\n```\n\n## Prod\n\nTo compile for publishing on the web do `lein cljsbuild once cnake-prod`. This will take about 20 seconds, and will compile with the advanced optimizations file.\n\nTo check the page and game open index.html\n\n## TODO\n\n* Add sounds for the events (move, eat and game-over)\n* Fix meta viewport on mobile devices\n* Turbo and game restart on mobile?\n* Make speed increase with snake size\n* Make game restart when receiving any command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fcnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakin%2Fcnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fcnake/lists"}