AndresMWeber / 4DSnake

You've all seen snake, but let's bring it into the fourth D I M E N S I O N!

Home Page:https://andresmweber.github.io/4DSnake/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

4DSnake Promo

"4D" Snake ๐Ÿ


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!

๐Ÿ“ Table of Contents

๐Ÿง About

After 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 I knew I would be able to complete my idea! Without futher ado:

๐Ÿ•น๏ธ How to Play

4D Snake!

Control Scheme

PC Mobile
Left A Swipe Left
Right D Swipe Right
Up W Swipe Up
Down S Swipe Down
Rotate Camera Left Click Drag Triple Touch
Zoom Camera Mouse Wheel Drag Double Touch

Installation

You can test and run this just by dragging public/index.html into the browser.

Feel free to install using NPM as well npm install 4dsnake.

๐Ÿš€ Deployment

This 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.

You 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).

โ›๏ธ Tech Stack

โœ๏ธ Authors

๐ŸŽ‰ Acknowledgements

  • @Ironhack for supporting me during the project!
  • @bobbypwang - For keeping me sane throughout the project and helping me brainstorm the idea.
  • @crispinonicky - For helping me out with some radian math!

About

You've all seen snake, but let's bring it into the fourth D I M E N S I O N!

https://andresmweber.github.io/4DSnake/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 90.3%Language:CSS 5.2%Language:HTML 4.4%