{"id":14981320,"url":"https://github.com/andresmweber/4dsnake","last_synced_at":"2025-10-29T05:31:40.490Z","repository":{"id":36047593,"uuid":"205900085","full_name":"AndresMWeber/4DSnake","owner":"AndresMWeber","description":"You've all seen snake, but let's bring it into the fourth D I M E N S I O N!","archived":false,"fork":false,"pushed_at":"2022-12-06T18:02:32.000Z","size":21931,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-29T05:23:28.501Z","etag":null,"topics":["3d","3d-game","3d-game-engine","3d-graphics","4d-snake","andres","andresmweber","browser-game","crossyroad","javascript-game","maya","real-time","realtime","snake","snake-game","snakegame","three-d","three-js","threejs","weber"],"latest_commit_sha":null,"homepage":"https://andresmweber.github.io/4DSnake/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndresMWeber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-02T16:54:22.000Z","updated_at":"2024-07-01T18:25:05.000Z","dependencies_parsed_at":"2023-01-16T12:30:15.204Z","dependency_job_id":null,"html_url":"https://github.com/AndresMWeber/4DSnake","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresMWeber%2F4DSnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresMWeber%2F4DSnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresMWeber%2F4DSnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresMWeber%2F4DSnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndresMWeber","download_url":"https://codeload.github.com/AndresMWeber/4DSnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219858317,"owners_count":16556047,"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":["3d","3d-game","3d-game-engine","3d-graphics","4d-snake","andres","andresmweber","browser-game","crossyroad","javascript-game","maya","real-time","realtime","snake","snake-game","snakegame","three-d","three-js","threejs","weber"],"created_at":"2024-09-24T14:03:19.330Z","updated_at":"2025-10-29T05:31:35.406Z","avatar_url":"https://github.com/AndresMWeber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://andresmweber.github.io/4DSnake/\" rel=\"noopener\"\u003e\n        \u003cimg width=300px height=300px src=\"https://raw.githubusercontent.com/andresmweber/4dsnake/master/presentation/promotional/promo.png\" alt=\"4DSnake Promo\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\"4D\" Snake 🐍\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/AndresMWeber/4DSnake\"\u003e\n        \u003cimg alt=\"Status\" src=\"https://img.shields.io/badge/status-active-success.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/AndresMWeber/4DSnake/issues\"\u003e\n        \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/andresmweber/4DSnake.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/AndresMWeber/4DSnake/blob/master/LICENSE\"\u003e\n        \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/License-BSD%203--Clause-blue.svg\" /\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003ca href=\".\"\u003e\n        \u003cimg alt=\"GitHub code size in bytes\" src=\"https://img.shields.io/github/languages/code-size/andresmweber/4dsnake\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://andresmweber.github.io/4DSnake/public/index.html\"\u003e\n        \u003cimg alt=\"GitHub deployments GitHub Pages\" src=\"https://img.shields.io/github/deployments/andresmweber/4dsnake/github-pages?label=gh-pages\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://fourdsnake.herokuapp.com/\"\u003e\n        \u003cimg alt=\"GitHub deployments Heroku\" src=\"https://img.shields.io/github/deployments/andresmweber/4dsnake/fourdsnake?label=heroku\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e You've all seen snake, but let's bring it into the true third (not really fourth) D I M E N S I O N!\n    \u003cbr\u003e \n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n    \u003ccode\u003e\n    \u003ca href=\"https://fourdsnake.herokuapp.com/\"\u003e\u003cimg width=14px alt=\"Heroku Favicon\" src=\"https://www.herokucdn.com/favicons/favicon.ico\" /\u003e Live Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://snake.andresmweber.com/\"\u003e\u003cimg width=14px alt=\"Github Favicon\" src=\"https://github.githubassets.com/favicon.ico\" /\u003e Live Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\n    \u003c/code\u003e\n\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/4dsnake\"\u003e\n        \u003cimg alt=\"NPM\" src=\"https://nodei.co/npm/4dsnake.png?compact=true\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n## 📝 Table of Contents\n\n- [About](#about)\n- [How To Play](#howto)\n- [Installation](#installation)\n- [Deployment](#deployment)\n- [Built Using](#tech)\n- [Authors](#authors)\n- [Acknowledgments](#acknowledgement)\n\n## 🧐 About \u003ca name = \"about\"\u003e\u003c/a\u003e\n\nAfter seeing Snake game after Snake game, I noticed that the trend was whenever it was adapted to 3D it always lacked Y-axis movement! Since I felt that was a total waste of a dimension that set me off to implement a version of it that wasn't constrained to two axes in JavaScript. After finding [three.js](https://threejs.org/) I knew I would be able to complete my idea! Without futher ado:\n\n## 🕹️ How to Play \u003ca name = \"howto\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ctable\u003e\n        \u003ctr width=400px\u003e\n        \u003ctd\u003e\n            \u003cimg width=400px src=\"https://github.com/AndresMWeber/4DSnake/blob/master/presentation/demo.gif?raw=true\" alt=\"4D Snake!\" /\u003e\n        \u003c/td\u003e\n        \u003ctd valign=\"top\"\u003e\n          \u003ctable width=400px\u003e\n                \u003ctr\u003e\n                    \u003ctd align=\"center\" colspan=\"3\"\u003e\u003ch3\u003eControl Scheme\u003c/h3\u003e\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003c/td\u003e\n                    \u003ctd\u003e\u003cb\u003ePC\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003e\u003cb\u003eMobile\u003c/b\u003e\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eLeft\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eA\u003c/td\u003e\n                    \u003ctd\u003eSwipe Left\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eRight\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eD\u003c/td\u003e\n                    \u003ctd\u003eSwipe Right\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eUp\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eW\u003c/td\u003e\n                    \u003ctd\u003eSwipe Up\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eDown\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eS\u003c/td\u003e\n                    \u003ctd\u003eSwipe Down\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eRotate Camera\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eLeft Click\u003c/td\u003e\n                    \u003ctd\u003eDrag Triple Touch\u003c/td\u003e\n                \u003c/tr\u003e\n                \u003ctr\u003e\n                    \u003ctd\u003e\u003cb\u003eZoom Camera\u003c/b\u003e\u003c/td\u003e\n                    \u003ctd\u003eMouse Wheel\u003c/td\u003e\n                    \u003ctd\u003eDrag Double Touch\u003c/td\u003e\n                \u003c/tr\u003e\n            \u003c/table\u003e\n        \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/table\u003e\n\u003c/div\u003e\n\n### Installation\n\nYou can test and run this just by dragging `public/index.html` into the browser.\n\nFeel free to install using NPM as well `npm install 4dsnake`.\n\n## 🚀 Deployment \u003ca name = \"deployment\"\u003e\u003c/a\u003e\n\nThis project is deployed on **Github Pages**. By keeping the top level `index.html` file, it will automatically populate to github pages. The only thing you need to do is edit the route to your own `public/index.html` route hosted on github pages.\n\nYou can also host this project on any cloud deployment you like, I chose **Heroku** for its quick setup. It hosts the project using **NodeJS** a simple _http-server_ that uses the `$PORT` environment variable (or defaults to `4000`).\n\n## ⛏️ Tech Stack \u003ca name = \"tech\"\u003e\u003c/a\u003e\n\n- [NodeJS](https://www.nodejs.org/) - Web Server\n- [JavaScript](https://www.javascript.com/) - Front End\n- [ThreeJS](https://threejs.org/) - 3D Engine\n- [CSS](https://www.w3.org/Style/CSS//) - Styling\n- [Maya](https://www.autodesk.com/products/maya/overview) - 3D Content\n\n## ✍️ Authors \u003ca name = \"authors\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/andresmweber/\"\u003e\n    \u003cimg title=\"Andres Weber\" src=\"https://github.com/andresmweber.png\" height=\"50px\"\u003e\n\u003c/a\u003e\n\n## 🎉 Acknowledgements \u003ca name = \"acknowledgement\"\u003e\u003c/a\u003e\n\n- [@Ironhack](https://github.com/ironhack) for supporting me during the project!\n- [@bobbypwang](https://github.com/bobbypwang) - For keeping me sane throughout the project and helping me brainstorm the idea.\n- [@crispinonicky](https://github.com/crispinonicky) - For helping me out with some radian math!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresmweber%2F4dsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandresmweber%2F4dsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresmweber%2F4dsnake/lists"}